|
||||||||||
| 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(String message)
Creates a new ValidationException with the given message. |
|
ValidationException(String message,
Exception exception,
int errorCode)
Deprecated. |
|
ValidationException(String message,
int errorCode)
Deprecated. |
|
ValidationException(String message,
Throwable exception)
Creates a new ValidationException with the given message and nested
exception. |
|
ValidationException(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. |
void |
setNext(ValidationException exception)
Sets the given ValidationException as the next Exception in the list. |
String |
toString()
Returns the String representation of this ValidationException. |
| Methods inherited from class org.exolab.castor.xml.XMLException |
|---|
getErrorCode, setErrorCode |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationException()
ValidationException with no message or nested exception.
public ValidationException(String message)
ValidationException with the given message.
message - the message for this exception
public ValidationException(String message,
int errorCode)
ValidationException with the given message.
message - the message for this exceptionerrorCode - the errorCode for this exceptionpublic ValidationException(Throwable exception)
exception - the nested Exception
public ValidationException(String message,
Throwable exception)
ValidationException with the given message and nested
exception.
message - the detail message for this exceptionexception - the nested exception
public ValidationException(String message,
Exception exception,
int errorCode)
ValidationException with the given message, nested
exception, and error code.
message - the detail message for this exceptionexception - the nested exceptionerrorCode - the error code for this exception| Method Detail |
|---|
public Location getLocation()
public ValidationException getNext()
public void setLocation(Location location)
setLocation in class XMLExceptionlocation - The location information for this validation Exception.protected boolean remove(ValidationException exception)
exception - the ValidationException to remove
protected void setLast(ValidationException exception)
setNext(org.exolab.castor.xml.ValidationException) if no additional
ValidationException(s) exist.
exception - the ValidationException to set as the last exception in
the list.public void setNext(ValidationException exception)
exception - the ValidationException to set as the next Exception in
the list.public String toString()
toString in class XMLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||