java.io.Serializable
MarshalException
, ResolverException
, SchemaException
, ValidationException
public class XMLException extends CastorException
Constructor | Description |
---|---|
XMLException() |
Creates a new XMLException with no message or nested Exception.
|
XMLException(java.lang.String message) |
Creates a new XMLException with the given message.
|
XMLException(java.lang.String message,
int errorCode) |
Creates a new XMLException with the given message and error code.
|
XMLException(java.lang.String message,
java.lang.Throwable exception) |
Creates a new XMLException with the given message and nested Exception.
|
XMLException(java.lang.String message,
java.lang.Throwable exception,
int errorCode) |
Creates a new XMLException with the given message, nested Exception, and
errorCode.
|
XMLException(java.lang.Throwable exception) |
Creates a new XMLException with the given nested Exception.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getErrorCode() |
Returns the error code for this Exception, or -1 if no error code exists.
|
void |
setErrorCode(int errorCode) |
Sets the error code for this Exception.
|
void |
setLocation(Location location) |
Sets the location information for this Exception.
|
java.lang.String |
toString() |
Returns the String representation of this Exception.
|
getCause, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace
public XMLException()
public XMLException(java.lang.String message)
message
- the message for this Exceptionpublic XMLException(java.lang.Throwable exception)
exception
- the nested exceptionpublic XMLException(java.lang.String message, int errorCode)
message
- the message for this ExceptionerrorCode
- the errorCode for this Exceptionpublic XMLException(java.lang.String message, java.lang.Throwable exception)
message
- the detail message for this Exceptionexception
- the nested exceptionpublic XMLException(java.lang.String message, java.lang.Throwable exception, int errorCode)
message
- the detail message for this exceptionexception
- the nested exceptionerrorCode
- the errorCode for this Exceptionpublic void setLocation(Location location)
location
- The location information for this validation exception.public java.lang.String toString()
toString
in class java.lang.Throwable
public int getErrorCode()
public void setErrorCode(int errorCode)
errorCode
- the error codeIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com