org.exolab.castor.xml
Class ValidationException
public class ValidationException
An Exception that can be used to signal XML validation errors.
$Revision$ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $ValidationException() - Creates a new ValidationException with no message or nested Exception.
|
ValidationException(String message) - Creates a new ValidationException with the given message.
|
ValidationException(String message, Exception exception, int errorCode) - Creates a new ValidationException with the given message, nested
Exception, and errorCode.
|
ValidationException(String message, Throwable exception) - Creates a new ValidationException with the given message and nested
Exception.
|
ValidationException(String message, int errorCode) - Creates a new ValidationException with the given message.
|
ValidationException(Throwable exception) - Creates a new ValidationException with the given nested Exception.
|
ValidationException
public ValidationException()
Creates a new ValidationException with no message or nested Exception.
ValidationException
public ValidationException(String message)
Creates a new ValidationException with the given message.
message
- the message for this Exception
ValidationException
public ValidationException(String message,
Exception exception,
int errorCode)
Creates a new ValidationException with the given message, nested
Exception, and errorCode.
message
- the detail message for this Exceptionexception
- the nested ExceptionerrorCode
- the errorCode for this Exception
ValidationException
public ValidationException(String message,
Throwable exception)
Creates a new ValidationException with the given message and nested
Exception.
message
- the detail message for this Exceptionexception
- the nested Exception
ValidationException
public ValidationException(String message,
int errorCode)
Creates a new ValidationException with the given message.
message
- the message for this ExceptionerrorCode
- the errorCode for this Exception
ValidationException
public ValidationException(Throwable exception)
Creates a new ValidationException with the given nested Exception.
exception
- the nested Exception
getLocation
public Location getLocation()
Returns the location of the Exception.
- the location of the Exception.
getNext
public ValidationException getNext()
Returns the next ValidationException in the list, or null if no
additional validation exceptions exist.
- the next ValidationException in the list, or null if there are no
additional Exceptions.
remove
protected boolean remove(ValidationException exception)
Removes the given ValidationException from the current list of
ValidationException.
exception
- the ValidationException to remove
- true if the given ValidationException was successfully removed.
setLast
protected void setLast(ValidationException exception)
Adds the given ValidationException as the last exception in the list.
This is equivalent to calling
setNext(ValidationException)
if no additional
ValidationException(s) exist.
exception
- the ValidationException to set as the last exception in
the list.
setLocation
public void setLocation(Location location)
Sets the location information for this ValidationException.
- setLocation in interface XMLException
location
- The location information for this validation Exception.
setNext
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.
exception
- the ValidationException to set as the next Exception in
the list.
toString
public String toString()
Returns the String representation of this ValidationException.
- toString in interface XMLException
- the String representation of this ValidationException.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com