Home » Castor-1.3-src » org.exolab.castor » xml » [javadoc | source]
org.exolab.castor.xml
public class: ValidationException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         org.exolab.castor.core.exceptions.CastorException
            org.exolab.castor.xml.XMLException
               org.exolab.castor.xml.ValidationException

All Implemented Interfaces:
    Serializable

An Exception that can be used to signal XML validation errors.
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public ValidationException() 
 public ValidationException(String message) 
    Creates a new ValidationException with the given message.
    Parameters:
    message - the message for this Exception
 public ValidationException(Throwable exception) 
    Creates a new ValidationException with the given nested Exception.
    Parameters:
    exception - the nested Exception
 public ValidationException(String message,
    int errorCode) 
    Creates a new ValidationException with the given message.
    Parameters:
    message - the message for this Exception
    errorCode - the errorCode for this Exception
 public ValidationException(String message,
    Throwable exception) 
    Creates a new ValidationException with the given message and nested Exception.
    Parameters:
    message - the detail message for this Exception
    exception - the nested Exception
 public ValidationException(String message,
    Exception exception,
    int errorCode) 
    Creates a new ValidationException with the given message, nested Exception, and errorCode.
    Parameters:
    message - the detail message for this Exception
    exception - the nested Exception
    errorCode - the errorCode for this Exception
Method from org.exolab.castor.xml.ValidationException Summary:
getLocation,   getNext,   remove,   setLast,   setLocation,   setNext,   toString
Methods from org.exolab.castor.xml.XMLException:
getErrorCode,   setErrorCode,   setLocation,   toString
Methods from org.exolab.castor.core.exceptions.CastorException:
getCause,   getMessage,   initCause,   printStackTrace,   printStackTrace,   printStackTrace
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.exolab.castor.xml.ValidationException Detail:
 public Location getLocation() 
    Returns the location of the Exception.
 public ValidationException getNext() 
    Returns the next ValidationException in the list, or null if no additional validation exceptions exist.
 protected boolean remove(ValidationException exception) 
    Removes the given ValidationException from the current list of ValidationException.
 protected  void setLast(ValidationException exception) 
    Adds the given ValidationException as the last exception in the list. This is equivalent to calling #setNext if no additional ValidationException(s) exist.
 public  void setLocation(Location location) 
    Sets the location information for this ValidationException.
 public  void setNext(ValidationException exception) 
    Sets the given ValidationException as the next Exception in the list. This method will overwrite any existing ValidationException that may already exist as the next Exception.
 public String toString() 
    Returns the String representation of this ValidationException.