Packageorg.spicefactory.parsley.dsl.messaging
Interfacepublic interface MessageErrorBuilder
Implementors DefaultMessageErrorBuilder

Builder for message error handlers.



Public Methods
 MethodDefined By
  
Sets the type of the error that this handler is interested in.
MessageErrorBuilder
  
Sets the execution order for this error handler.
MessageErrorBuilder
  
Sets the name of the scope this error handler should be applied to.
MessageErrorBuilder
  
Sets an optional selector value to be used in addition to selecting messages by type.
MessageErrorBuilder
  
Sets the type of the messages the error handler wants to handle.
MessageErrorBuilder
Method Detail
errorType()method
public function errorType(value:Class):MessageErrorBuilder

Sets the type of the error that this handler is interested in. The default is the top level Error class.

Parameters

value:Class — the type of the error that this handler is interested in

Returns
MessageErrorBuilder — this builder instance for method chaining
order()method 
public function order(value:int):MessageErrorBuilder

Sets the execution order for this error handler. Will be processed in ascending order. The default is int.MAX_VALUE.

Parameters

value:int — the execution order for this error handler

Returns
MessageErrorBuilder — this builder instance for method chaining
scope()method 
public function scope(name:String):MessageErrorBuilder

Sets the name of the scope this error handler should be applied to.

Parameters

name:String — the name of the scope this error handler should be applied to

Returns
MessageErrorBuilder — this builder instance for method chaining
selector()method 
public function selector(value:*):MessageErrorBuilder

Sets an optional selector value to be used in addition to selecting messages by type.

Parameters

value:* — an optional selector value to be used in addition to selecting messages by type

Returns
MessageErrorBuilder — this builder instance for method chaining
type()method 
public function type(value:Class):MessageErrorBuilder

Sets the type of the messages the error handler wants to handle.

Parameters

value:Class — the type of the messages the error handler wants to handle

Returns
MessageErrorBuilder — this builder instance for method chaining