ptolemy.actor.gt
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ptolemy.kernel.util.KernelException
              extended by ptolemy.actor.gt.ValidationException
All Implemented Interfaces:
java.io.Serializable

public class ValidationException
extends KernelException

An exception to be thrown when the string representation of GT ingredients cannot be validated.

Since:
Ptolemy II 8.0
Version:
$Id: ValidationException.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Thomas Huining Feng
See Also:
Serialized Form
Accepted Rating:
Red (tfeng)
Proposed Rating:
Yellow (tfeng)

Constructor Summary
ValidationException(java.lang.String message)
          Construct an exception with a detail message.
ValidationException(java.lang.String message, 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

ValidationException

public ValidationException(java.lang.String message)
Construct an exception with a detail message.

Parameters:
message - The message.

ValidationException

public ValidationException(java.lang.String message,
                           java.lang.Throwable cause)
Construct an exception with a detail message. 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.

Parameters:
message - The message.
cause - The cause of this exception.