Class AnalyzeExceptionAttribute

    • Constructor Detail

      • AnalyzeExceptionAttribute

        public AnalyzeExceptionAttribute​(CompositeEntity container,
                                         java.lang.String name)
                                  throws NameDuplicationException,
                                         IllegalActionException
        Create a new actor in the specified container with the specified name. The name must be unique within the container or an exception is thrown. The container argument must not be null, or a NullPointerException will be thrown.
        Parameters:
        container - The container.
        name - The name of this actor within the container.
        Throws:
        IllegalActionException - If this actor cannot be contained by the proposed container (see the setContainer() method).
        NameDuplicationException - If the name coincides with an entity already in the container.
    • Method Detail

      • clone

        public java.lang.Object clone​(Workspace workspace)
                               throws java.lang.CloneNotSupportedException
        Clone the actor into the specified workspace.
        Overrides:
        clone in class CatchExceptionAttribute
        Parameters:
        workspace - The workspace for the new object.
        Returns:
        A new actor.
        Throws:
        java.lang.CloneNotSupportedException - If a derived class contains an attribute that cannot be cloned.
        See Also:
        Object.clone()
      • handleException

        public boolean handleException​(NamedObj context,
                                       java.lang.Throwable exception)
                                throws IllegalActionException
        Handle an exception according to the specified policy: analyze: Determine the source actor(s) and annotate output ports with error constraints. others: Delegate to parent class
        Specified by:
        handleException in interface ExceptionHandler
        Overrides:
        handleException in class CatchExceptionAttribute
        Parameters:
        context - The object in which the error occurred.
        exception - The exception to be handled.
        Returns:
        true if the exception is handled; false if this attribute did not handle it
        Throws:
        IllegalActionException - If there is a problem writing to the log file