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. @author Edward A. Lee @version $Id: ModelErrorHandler.java,v 1.17 2005/07/08 19:59:17 cxh Exp $ @since Ptolemy II 2.1 @Pt.ProposedRating Green (eal) @Pt.AcceptedRating Green (hyzheng)
|
|