org.nodal.util
Class TypeConstraintFailure
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.nodal.util.ConstraintFailure
org.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
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 |
TypeConstraintFailure
public TypeConstraintFailure(java.lang.Object o,
Type t,
java.lang.String msg)
TypeConstraintFailure
public TypeConstraintFailure(Type t,
java.lang.String msg)
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()