Package ptolemy.actor.gt
Class TransformationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ptolemy.kernel.util.KernelException
-
- ptolemy.actor.gt.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 Summary
Constructors Constructor Description TransformationException()
Construct an exception with a no specific detail message.TransformationException(java.lang.String detail)
Construct an exception with a detail message.TransformationException(java.lang.String detail, java.lang.Throwable cause)
Construct an exception with a detail message.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.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.
-
Method Summary
-
Methods inherited from class ptolemy.kernel.util.KernelException
_setCause, _setMessage, generateMessage, generateMessage, generateMessage, getCause, getFullName, getMessage, getName, getNameable1, getNameable2, printStackTrace, printStackTrace, printStackTrace, stackTraceToString
-
-
-
-
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.
-
-