com.ibm.tws.objects.validator
Class ConstraintValidatorException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ibm.tws.util.exception.TWSException
              extended bycom.ibm.tws.objects.validator.ValidatorException
                  extended bycom.ibm.tws.objects.validator.ConstraintValidatorException
All Implemented Interfaces:
java.io.Serializable

public class ConstraintValidatorException
extends ValidatorException

This exception is thrown when validation of an object fails because the current value of a field does not comply with a constraint defined by the current value of one or more fields of the same object.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Fields inherited from class com.ibm.tws.objects.validator.ValidatorException
MESSAGE_CATALOG
 
Constructor Summary
ConstraintValidatorException(java.util.List masterFields, java.util.List masterValues, java.lang.String slaveField, java.lang.Object slaveValue, Validator caller)
          Creates a new ConstraintValidatorException from the specified parameters.
 
Methods inherited from class com.ibm.tws.util.exception.TWSException
getArgs, getCauseMessage, getLocalizedMessage, getLocalizedMessage, getMessage, initialize, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

ConstraintValidatorException

public ConstraintValidatorException(java.util.List masterFields,
                                    java.util.List masterValues,
                                    java.lang.String slaveField,
                                    java.lang.Object slaveValue,
                                    Validator caller)
Creates a new ConstraintValidatorException from the specified parameters.

Parameters:
masterFields - A list of the names of all the fields that define the constraint.
masterValues - A list of the values of all the fields that define the constraint.
slaveField - The name of the field that does not comply with the constraint.
slaveValue - The value of the field that does not comply with the constraint.
caller - The validator that is creating the exception.


Copyright © 2005 IBM All Rights Reserved.