Packageorg.spicefactory.parsley.messaging.receiver
Classpublic class DefaultMessageErrorHandler
InheritanceDefaultMessageErrorHandler Inheritance AbstractMethodReceiver Inheritance AbstractObjectProviderReceiver Inheritance AbstractMessageReceiver Inheritance Object
Implements MessageErrorHandler

Default implementation of the MessageErrorHandler interface.



Public Properties
 PropertyDefined By
  errorType : Class
[read-only] The type of Error this handler is interested in.
DefaultMessageErrorHandler
 Inheritedorder : int
[read-only] The execution order for this receiver.
AbstractMessageReceiver
 Inheritedprovider : ObjectProvider
[read-only] The provider for the actual instance handling the message.
AbstractObjectProviderReceiver
 Inheritedselector : *
[read-only] An optional selector value to be used for selecting matching messages.
AbstractMessageReceiver
 InheritedtargetMethod : Method
[read-only] The method to invoke for matching messages.
AbstractMethodReceiver
 Inheritedtype : Class
[read-only] The class or interface of the message.
AbstractMessageReceiver
Protected Properties
 PropertyDefined By
 Inheritedinfo : MessageReceiverInfo
[read-only] The receiver configuration in one (mutable) model object.
AbstractMessageReceiver
Public Methods
 MethodDefined By
  
Creates a new instance.
DefaultMessageErrorHandler
  
handleError(processor:MessageProcessor, error:Error):void
Handles an error thrown by a regular message target or interceptor.
DefaultMessageErrorHandler
 Inherited
init(provider:ObjectProvider, method:Method):void
Initializes this receiver, passing the target object provider and method.
AbstractMethodReceiver
 Inherited
toString():String
AbstractMethodReceiver
Protected Methods
 MethodDefined By
 Inherited
deduceMessageTypeFromParameter(method:Method, paramIndex:uint):void
Returns the Class to use as the message type.
AbstractMethodReceiver
 Inherited
Sets the provider for target instances for this receiver.
AbstractObjectProviderReceiver
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
Constructor Detail
DefaultMessageErrorHandler()Constructor
public function DefaultMessageErrorHandler(info:MessageReceiverInfo = null, errorType:ClassInfo = null)

Creates a new instance. The target method must have a parameter of type org.spicefactory.parsley.messaging.MessageProcessor and a second parameter of type Error (or a subtype).

Parameters
info:MessageReceiverInfo (default = null) — the mapping information for the receiver
 
errorType:ClassInfo (default = null) — the type of Error this handler is interested in
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