ptolemy.kernel.util
Interface ExceptionHandler
- All Known Implementing Classes:
- TestExceptionHandler
public interface ExceptionHandler
Interface for exception handlers. If a model contains an entity that
implements this interface, then if running the model results in an
exception, the exception is delegated to this exception handler.
- Since:
- Ptolemy II 5.2
- Version:
- $Id: ExceptionHandler.java 57040 2010-01-27 20:52:32Z cxh $
- Author:
- Haiyang Zheng
- Accepted Rating:
- Proposed Rating:
handleException
boolean handleException(NamedObj context,
java.lang.Throwable exception)
throws IllegalActionException
- Handle an exception. This method may throw another exception.
- Parameters:
context
- The object in which the exception occurred.exception
- An exception to be handled.
- Returns:
- True if the exception has been handled, or false if the
exception is not handled.
- Throws:
IllegalActionException
- If this handler handles the
exception by throwing an exception.