Packageorg.spicefactory.parsley.comobserver
Classpublic class CommandError
InheritanceCommandError Inheritance Object

API for configuring methods which wish to be invoked when a matching asynchronous command execution aborts with an error.



Public Methods
 MethodDefined By
  
Applies this configuration to the specified definition builder.
CommandError
  
forMethod(method:String):CommandError
[static] Creates a new builder for a command result handler.
CommandError
  
order(value:int):CommandError
Sets the execution order for this message receiver.
CommandError
  
scope(name:String):CommandError
Sets the name of the scope this message receiver should be applied to.
CommandError
  
Sets an optional selector value to be used in addition to selecting messages by type.
CommandError
  
type(value:Class):CommandError
Sets the type of the messages the message receiver wants to handle.
CommandError
Method Detail
apply()method
public function apply(builder:ObjectDefinitionBuilder):void

Applies this configuration to the specified definition builder.

Parameters

builder:ObjectDefinitionBuilder — the builder to apply this configuration to

forMethod()method 
public static function forMethod(method:String):CommandError

Creates a new builder for a command result handler.

Parameters

method:String — the method that handles the result

Returns
CommandError — a new builder for a command result handler
order()method 
public function order(value:int):CommandError

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

Parameters

value:int — the execution order for this message receiver

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

Sets the name of the scope this message receiver should be applied to.

Parameters

name:String — the name of the scope this message receiver should be applied to

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

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
CommandError — this builder instance for method chaining
type()method 
public function type(value:Class):CommandError

Sets the type of the messages the message receiver wants to handle.

Parameters

value:Class — the type of the messages the message receiver wants to handle

Returns
CommandError — this builder instance for method chaining