com.ibm.tws.objects.validator
Class ComparisonValidatorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.tws.util.exception.TWSException
com.ibm.tws.objects.validator.ValidatorException
com.ibm.tws.objects.validator.ComparisonValidatorException
- All Implemented Interfaces:
- java.io.Serializable
- public class ComparisonValidatorException
- extends ValidatorException
This exception is thrown when validation of an object fails because a comparison constraint between two fields is not met.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
Copyright. |
Constructor Summary |
ComparisonValidatorException(java.lang.String field1,
java.util.Date value1,
java.lang.String field2,
java.util.Date value2,
Validator caller)
Creates a new ComparisonValidatorException from the specified parameters (used in validations on date fields). |
ComparisonValidatorException(java.lang.String field1,
int value1,
java.lang.String field2,
int value2,
Validator caller)
Creates a new ComparisonValidatorException from the specified parameters (used in validations on integer fields). |
ComparisonValidatorException(java.lang.String field1,
long value1,
java.lang.String field2,
long value2,
Validator caller)
Creates a new ComparisonValidatorException from the specified parameters (used in validations on long integer fields). |
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- Copyright.
ComparisonValidatorException
public ComparisonValidatorException(java.lang.String field1,
int value1,
java.lang.String field2,
int value2,
Validator caller)
- Creates a new ComparisonValidatorException from the specified parameters (used in validations on integer fields).
- Parameters:
field1
- The name of the first integer field (the one that must be greater).value1
- The value of the first integer field.field2
- The name of the second integer field (the one that must be lower).value2
- The value of the second integer field.caller
- The validator that is creating the exception.
ComparisonValidatorException
public ComparisonValidatorException(java.lang.String field1,
long value1,
java.lang.String field2,
long value2,
Validator caller)
- Creates a new ComparisonValidatorException from the specified parameters (used in validations on long integer fields).
- Parameters:
field1
- The name of the first long integer field (the one that must be greater).value1
- The value of the first long integer field.field2
- The name of the second long integer field (the one that must be lower).value2
- The value of the second long integer field.caller
- The validator that is creating the exception.
ComparisonValidatorException
public ComparisonValidatorException(java.lang.String field1,
java.util.Date value1,
java.lang.String field2,
java.util.Date value2,
Validator caller)
- Creates a new ComparisonValidatorException from the specified parameters (used in validations on date fields).
- Parameters:
field1
- The name of the first date field (the one that must be greater).value1
- The value of the first date field.field2
- The name of the second date field (the one that must be lower).value2
- The value of the second date field.caller
- The validator that is creating the exception.
Copyright © 2005 IBM All Rights Reserved.