ptolemy.actor.gt
Class TransformationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ptolemy.kernel.util.KernelException
              extended by 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: TransformationException.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Thomas Huining Feng
See Also:
GraphTransformer, Serialized Form
Accepted Rating:
Red (tfeng)
Proposed Rating:
Yellow (tfeng)

Constructor Summary
TransformationException()
          Construct an exception with a no specific 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.
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.
 
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
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.