ThrowModelError
ptolemy.actor.lib.ThrowModelError

An actor that throws a model error when it receives a true token on any input channel. The message reported in the model error is given by the message parameter. The inputs are read and checked in the postfire() method only.

A model error is an exception that is passed up the containment hierarchy rather than being immediately thrown. Any container in the containment hierarchy may choose to handle the error. By default, containers will pass and delegate the error to their container, if they have one, and throw an exception if they don't. But some containers might do more with the error.

Author(s): Haiyang Zheng
Version:$Id: ThrowModelError.java,v 1.26 2005/07/08 19:56:08 cxh Exp $
Pt.Proposed Rating:Green (eal)
Pt.Accepted Rating:Green (neuendor)