public interface ModelErrorHandler
A typical use of this facility is where an actor does the following:
handleModelError(this, new IllegalActionException(this, message));instead of this:
throw new IllegalActionException(this, message);The former allows a container in the hierarchy to intercept the exception, whereas the latter simply throws the exception.
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleModelError(NamedObj context,
IllegalActionException exception)
Handle a model error.
|
boolean handleModelError(NamedObj context, IllegalActionException exception) throws IllegalActionException
context - The object in which the error occurred.exception - An exception that represents the error.IllegalActionException - If the handler handles the
error by throwing an exception.