| Package | org.spicefactory.parsley.dsl.messaging |
| Interface | public interface MessageErrorBuilder |
| Implementors | DefaultMessageErrorBuilder |
| Method | Defined By | ||
|---|---|---|---|
errorType(value:Class):MessageErrorBuilder
Sets the type of the error that this handler is interested in. | MessageErrorBuilder | ||
order(value:int):MessageErrorBuilder
Sets the execution order for this error handler. | MessageErrorBuilder | ||
scope(name:String):MessageErrorBuilder
Sets the name of the scope this error handler should be applied to. | MessageErrorBuilder | ||
selector(value:*):MessageErrorBuilder
Sets an optional selector value to be used in addition to selecting messages by type. | MessageErrorBuilder | ||
type(value:Class):MessageErrorBuilder
Sets the type of the messages the error handler wants to handle. | MessageErrorBuilder | ||
| errorType | () | method |
public function errorType(value:Class):MessageErrorBuilderSets 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
|
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
|
MessageErrorBuilder — this builder instance for method chaining
|
| scope | () | method |
public function scope(name:String):MessageErrorBuilderSets 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
|
MessageErrorBuilder — this builder instance for method chaining
|
| selector | () | method |
public function selector(value:*):MessageErrorBuilderSets 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
|
MessageErrorBuilder — this builder instance for method chaining
|
| type | () | method |
public function type(value:Class):MessageErrorBuilderSets 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
|
MessageErrorBuilder — this builder instance for method chaining
|