cortex-exceptions
provides a set of common exceptions used across the Cortex SOA infrastructure.
Add this line to your application's Gemfile:
gem 'cortex-exceptions'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cortex-exceptions
Simply reference the exception you wish to raise or rescue from in your application. Example:
raise Cortex::Exceptions::ResourceConsumed