Package ptolemy.kernel.util
Interface ExceptionHandler
-
- All Known Implementing Classes:
AnalyzeExceptionAttribute,CatchExceptionAttribute,ExceptionManager,TestExceptionAttribute,TestExceptionHandler
public interface ExceptionHandlerInterface 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$
- Author:
- Haiyang Zheng
- Pt.AcceptedRating:
- Green (hyzheng)
- Pt.ProposedRating:
- Green (hyzheng)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandleException(NamedObj context, java.lang.Throwable exception)Handle an exception.
-
-
-
Method Detail
-
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.
-
-