org.nodal.util
Class TypeConstraintFailure

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.nodal.util.ConstraintFailure
              extended byorg.nodal.util.TypeConstraintFailure
All Implemented Interfaces:
java.io.Serializable

public class TypeConstraintFailure
extends ConstraintFailure

Signals that an object has failed to conform to the constraint of a given NODAL type.

Author:
Lee Iverson
See Also:
Serialized Form

Constructor Summary
TypeConstraintFailure(java.lang.Object o, Type t, java.lang.String msg)
           
TypeConstraintFailure(Type t, java.lang.String msg)
           
 
Method Summary
 java.lang.Object getObject()
          The object that has failed the constraint check.
 Type getType()
          The type that represents the constraint failed.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeConstraintFailure

public TypeConstraintFailure(java.lang.Object o,
                             Type t,
                             java.lang.String msg)

TypeConstraintFailure

public TypeConstraintFailure(Type t,
                             java.lang.String msg)
Method Detail

getObject

public final java.lang.Object getObject()
The object that has failed the constraint check.


getType

public final Type getType()
The type that represents the constraint failed.


toString

public java.lang.String toString()