|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.exolab.castor.core.exceptions.CastorException
org.exolab.castor.xml.XMLException
org.exolab.castor.xml.ValidationException
public class ValidationException
An exception that can be used to signal XML validation errors
Constructor Summary | |
---|---|
ValidationException()
Creates a new ValidationException with no message, or nested Exception |
|
ValidationException(java.lang.String message)
Creates a new ValidationException with the given message. |
|
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. |
|
ValidationException(java.lang.String message,
java.lang.Throwable exception)
Creates a new ValidationException with the given message and nested exception. |
|
ValidationException(java.lang.Throwable exception)
Creates a new ValidationException with the given nested exception. |
Method Summary | |
---|---|
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. |
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. |
void |
setLocation(Location location)
Sets the location information for this ValidationException |
protected void |
setNext(ValidationException exception)
Sets the given ValidationException as the next exception in the list. |
java.lang.String |
toString()
Returns the String representation of this Exception |
Methods inherited from class org.exolab.castor.xml.XMLException |
---|
getErrorCode, setErrorCode |
Methods inherited from class org.exolab.castor.core.exceptions.CastorException |
---|
getCause, getException, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValidationException()
public ValidationException(java.lang.String message)
message
- the message for this Exceptionpublic ValidationException(java.lang.String message, int errorCode)
message
- the message for this ExceptionerrorCode
- the errorCode for this Exceptionpublic ValidationException(java.lang.Throwable exception)
exception
- the nested exceptionpublic ValidationException(java.lang.String message, java.lang.Throwable exception)
message
- the detail message for this exceptionexception
- the nested exceptionpublic ValidationException(java.lang.String message, java.lang.Exception exception, int errorCode)
message
- the detail message for this exceptionexception
- the nested exceptionerrorCode
- the errorCode for this ExceptionMethod Detail |
---|
public Location getLocation()
public ValidationException getNext()
public void setLocation(Location location)
setLocation
in class XMLException
location,
- the location information for this validation
exceptionprotected boolean remove(ValidationException exception)
exception
- the ValidationException to remove
protected void setLast(ValidationException exception)
exception
- the ValidationException to set as the last
exception in the list.protected void setNext(ValidationException exception)
exception
- the ValidationException to set as the next
exception in the list.public java.lang.String toString()
toString
in class XMLException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |