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).


When a Batman.StorageAdapter fails to complete an operation, it throws a specific error. Batman.Controller can set up handlers for these errors with @catchError. Each error class prototype has:

  • name, which matches its class name (eg, Batman.StorageAdapter.RecordExistsError::name is "RecordExistsError")
  • message, which describes the error

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.