Interface for exception handlers
An exception handler should tell which ErrorMessage it handles and do some action when the accepted error happens
public function accepts(emsg:ErrorMessage):Boolean
Should return true if this handler is able to manage the specified ErrorMessage
Parameters
| emsg:ErrorMessage — an error message
|
Returns
| Boolean — true if ErrorMessage accepted
|
public function handle(context:BaseContext, emsg:ErrorMessage):void
Handle the error
Parameters
| context:BaseContext — the context in which the error occured
|
| |
| emsg:ErrorMessage — the error message
|