Packageorg.spicefactory.parsley.core.messaging.receiver
Interfacepublic interface MessageErrorHandler extends MessageReceiver
Implementors DefaultMessageErrorHandler

Handles errors thrown by regular message targets or interceptors.



Public Properties
 PropertyDefined By
  errorType : Class
[read-only] The type of Error this handler is interested in.
MessageErrorHandler
 Inheritedorder : int
[read-only] The execution order for this receiver.
MessageReceiver
 Inheritedselector : *
[read-only] An optional selector value to be used for selecting matching messages.
MessageReceiver
 Inheritedtype : Class
[read-only] The class or interface of the message.
MessageReceiver
Public Methods
 MethodDefined By
  
handleError(processor:MessageProcessor, error:Error):void
Handles an error thrown by a regular message target or interceptor.
MessageErrorHandler
Property Detail
errorTypeproperty
errorType:Class  [read-only]

The type of Error this handler is interested in. Like with matching message classes this works in a polymorphic way. Specifying the base Error class creates an ErrorHandler that handles all errors for a particular message type.


Implementation
    public function get errorType():Class
Method Detail
handleError()method
public function handleError(processor:MessageProcessor, error:Error):void

Handles an error thrown by a regular message target or interceptor. Processing further error handlers and targets will only happen if proceed is called on the specified processor.

Parameters

processor:MessageProcessor — the processor for the message
 
error:Error — the error thrown by a message target