com.ibm.tws.objects.validator
Class InstanceValidatorException

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.InstanceValidatorException
All Implemented Interfaces:
java.io.Serializable

public class InstanceValidatorException
extends ValidatorException

This exception is thrown when validation of an object fails because one of the objects in a list is not an instance of the expected class.

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
InstanceValidatorException(java.lang.String field, java.lang.String wrongClass, java.lang.String correctClass, Validator caller)
          Creates a new InstanceValidatorException 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

InstanceValidatorException

public InstanceValidatorException(java.lang.String field,
                                  java.lang.String wrongClass,
                                  java.lang.String correctClass,
                                  Validator caller)
Creates a new InstanceValidatorException from the specified parameters.

Parameters:
field - The name of the field.
wrongClass - The class name of the object instance.
correctClass - The class name that was expected for the object instance.
caller - The validator that is creating the exception.


Copyright © 2005 IBM All Rights Reserved.