com.virtuosotechnologies.lib.base
Class ConstraintsMismatchException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.virtuosotechnologies.lib.base.ConstraintsMismatchException
All Implemented Interfaces:
Serializable

public class ConstraintsMismatchException
extends RuntimeException

ConstrainedKey constraints were not obeyed

See Also:
Serialized Form

Constructor Summary
ConstraintsMismatchException(ConstrainedKey constrainedKey, Object obj)
          Constructor.
ConstraintsMismatchException(ConstrainedKey constrainedKey, Object obj, String message)
          Constructor.
 
Method Summary
 ConstrainedKey getConstraints()
          Get the constraints
 Object getMismatchedObject()
          Get the object
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstraintsMismatchException

public ConstraintsMismatchException(ConstrainedKey constrainedKey,
                                    Object obj,
                                    String message)
Constructor.

Parameters:
constrainedKey - constraints
obj - object that didn't match
message - message string

ConstraintsMismatchException

public ConstraintsMismatchException(ConstrainedKey constrainedKey,
                                    Object obj)
Constructor.

Parameters:
constrainedKey - constraints
obj - object that didn't match
Method Detail

getConstraints

public final ConstrainedKey getConstraints()
Get the constraints

Returns:
ConstrainedKey

getMismatchedObject

public final Object getMismatchedObject()
Get the object

Returns:
ConstrainedKey