jkanschik / node-eip

Implementation of the Enterprise Integration Patterns (EIP) for node.js
6 stars 2 forks source link

Enhance error handling #1

Closed jkanschik closed 12 years ago

jkanschik commented 12 years ago

Error handling should be done as follows:

  1. If an event is emitted which has headers._exception != undefined, error handling is triggered for the processor which emitted the event.
  2. If an exception is raised during a call of a processor, headers._exception must be set and the error handling is triggered for the processor which raised the exception.

headers._exception.numberOfAttempts contains the number of attempts so far.

jkanschik commented 12 years ago

Code + Documentation done.