Class TransformationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TransformationException
    extends KernelException
    An exception to be thrown in model transformation.
    Since:
    Ptolemy II 6.1
    Version:
    $Id$
    Author:
    Thomas Huining Feng
    See Also:
    GraphTransformer, Serialized Form
    Pt.AcceptedRating:
    Red (tfeng)
    Pt.ProposedRating:
    Yellow (tfeng)
    • Constructor Detail

      • TransformationException

        public TransformationException()
        Construct an exception with a no specific detail message.
      • TransformationException

        public TransformationException​(Nameable object1,
                                       Nameable object2,
                                       java.lang.String detail)
        Construct an exception with a detail message that includes the names of the first two arguments plus the third argument string. If one or more of the parameters are null, then the message of the exception is adjusted accordingly.
        Parameters:
        object1 - The first object.
        object2 - The second object.
        detail - The message.
      • TransformationException

        public TransformationException​(Nameable object1,
                                       Nameable object2,
                                       java.lang.Throwable cause,
                                       java.lang.String detail)
        Construct an exception with a detail message that includes the names of the first two arguments plus the third argument string. If the cause argument is non-null, then the message of this exception will include the message of the cause argument. The stack trace of the cause argument is used when we print the stack trace of this exception. If one or more of the parameters are null, then the message of the exception is adjusted accordingly.
        Parameters:
        object1 - The first object.
        object2 - The second object.
        cause - The cause of this exception.
        detail - The message.
      • TransformationException

        public TransformationException​(java.lang.String detail)
        Construct an exception with a detail message.
        Parameters:
        detail - The message.
      • TransformationException

        public TransformationException​(java.lang.String detail,
                                       java.lang.Throwable cause)
        Construct an exception with a detail message. The stack trace of the cause argument is used when we print the stack trace of this exception.
        Parameters:
        detail - The message.
        cause - The cause of this exception.