org.exolab.castor.xml
Class ValidationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.exolab.castor.xml.CastorException
              extended byorg.exolab.castor.xml.ValidationException
All Implemented Interfaces:
java.io.Serializable

public class ValidationException
extends CastorException

An exception that can be used to signal XML validation errors

Version:
$Revision: 1.2 $ $Date: 2003/11/17 22:12:03 $
Author:
Keith Visco
See Also:
Serialized Form

Constructor Summary
ValidationException()
          Creates a new ValidationException with no message, or nested Exception
ValidationException(java.lang.Exception exception)
          Creates a new ValidationException with the given nested exception.
ValidationException(java.lang.String message)
          Creates a new ValidationException with the given message.
ValidationException(java.lang.String message, java.lang.Exception exception)
          Creates a new ValidationException with the given message and nested exception.
ValidationException(java.lang.String message, java.lang.Exception exception, int errorCode)
          Creates a new ValidationException with the given message, nested exception, and errorCode.
ValidationException(java.lang.String message, int errorCode)
          Creates a new ValidationException with the given message.
 
Method Summary
 java.lang.Exception getException()
          Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.
 Location getLocation()
          Returns the location of the exception
 ValidationException getNext()
          Returns the next ValidationException in the list, or null if no additional validation exceptions exist.
 void setLocation(Location location)
          Sets the location information for this ValidationException
 java.lang.String toString()
          Returns the String representation of this Exception
 
Methods inherited from class org.exolab.castor.xml.CastorException
getErrorCode, getMessage, setErrorCode, setMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException()
Creates a new ValidationException with no message, or nested Exception


ValidationException

public ValidationException(java.lang.String message)
Creates a new ValidationException with the given message.

Parameters:
message - the message for this Exception

ValidationException

public ValidationException(java.lang.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

ValidationException

public ValidationException(java.lang.Exception exception)
Creates a new ValidationException with the given nested exception.

Parameters:
exception - the nested exception

ValidationException

public ValidationException(java.lang.String message,
                           java.lang.Exception exception)
Creates a new ValidationException with the given message and nested exception.

Parameters:
message - the detail message for this exception
exception - the nested exception

ValidationException

public ValidationException(java.lang.String message,
                           java.lang.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 Detail

getException

public java.lang.Exception getException()
Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.

Returns:
the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.

getLocation

public Location getLocation()
Returns the location of the exception

Returns:
the location of the exception

getNext

public ValidationException getNext()
Returns the next ValidationException in the list, or null if no additional validation exceptions exist.

Returns:
the next ValidationException in the list, or null if there are no additional exceptions.

setLocation

public void setLocation(Location location)
Sets the location information for this ValidationException


toString

public java.lang.String toString()
Returns the String representation of this Exception

Returns:
the String representation of this Exception


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com