Class Ruote::ErrorHandler
In: lib/ruote/svc/error_handler.rb
Parent: Object

A ruote service for turning errors into process errors (or letting those error fire any potential :on_error attributes in the process definition).

This service is used, by the worker, the dispatch pool and some receivers (like the one in ruote-beanstalk).

Methods

Classes and Modules

Class Ruote::ErrorHandler::RaisedError

Public Class methods

Public Instance methods

As used by some receivers (see ruote-beanstalk‘s receiver).

TODO: at some point, merge that with msg_raise

As used by the dispatch pool and the worker.

Packages the error in a ‘raise’ msg and places it in the storage, for a worker to pick it up.

Protected Instance methods

Returns a serializable hash with all the details of the error.

[Validate]