Batman.js is no longer in production at Shopify and is not actively maintained.

This website is left for reference (and for old times' sake).


Batman.StateMachine.InvalidTransitionError should be thrown when a state machine makes an invalid transition. Batman.StateMachine doesn't throw these errors automatically, but applications of the StateMachine may throw them. For example Batman.Model throws an InvalidTransitionError when save is called on a deleted record.

Help us improve our documentation!

Contributions to this page are welcome on Github. If you find a problem but you cannot fix it, please open an issue.

Discussion regarding batman.js documentation is also welcome on our mailing list.