public class XMLException extends CastorException
Constructor and Description |
---|
XMLException()
Creates a new instance of this class with no message or nested exception.
|
XMLException(String message)
Creates a new
XMLException instance with the given message. |
XMLException(String message,
int errorCode)
Deprecated.
|
XMLException(String message,
Throwable exception)
Creates a new XMLException with the given message and nested Exception.
|
XMLException(String message,
Throwable exception,
int errorCode)
Deprecated.
|
XMLException(Throwable exception)
Creates a new XMLException with the given nested Exception.
|
Modifier and Type | Method and 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.
|
String |
toString()
Returns the String representation of this Exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public XMLException()
public XMLException(String message)
XMLException
instance with the given message.message
- the message for this Exceptionpublic XMLException(Throwable exception)
exception
- the nested exceptionpublic XMLException(String message, int errorCode)
message
- the message for this ExceptionerrorCode
- the errorCode for this Exceptionpublic XMLException(String message, Throwable exception)
message
- the detail message for this Exceptionexception
- the nested exceptionpublic XMLException(String message, 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 String toString()
public int getErrorCode()
public void setErrorCode(int errorCode)
errorCode
- the error codeCopyright © 2014. All rights reserved.