|
||||||||
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.xml.CastorException
org.exolab.castor.xml.XMLException
public class XMLException
An exception that is used to signal an error that has occured during marshalling or unmarshalling.
Constructor Summary | |
---|---|
XMLException()
Creates a new XMLException with no message or nested Exception. |
|
XMLException(java.lang.Exception exception)
Creates a new XMLException with the given nested exception. |
|
XMLException(java.lang.String message)
Creates a new XMLException with the given message. |
|
XMLException(java.lang.String message,
java.lang.Exception exception)
Creates a new XMLException with the given message and nested exception. |
|
XMLException(java.lang.String message,
java.lang.Exception exception,
int errorCode)
Creates a new XMLException with the given message, nested exception, and errorCode. |
|
XMLException(java.lang.String message,
int errorCode)
Creates a new XMLException with the given message. |
Method Summary | |
---|---|
java.lang.Exception |
getException()
Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists. |
void |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream printer)
|
void |
printStackTrace(java.io.PrintWriter printer)
|
void |
setLocation(Location location)
Sets the location information for this Exception |
java.lang.String |
toString()
Returns the String representation of this Exception. |
Methods inherited from class org.exolab.castor.xml.CastorException |
---|
getErrorCode, getMessage, setErrorCode, setMessage |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XMLException()
public XMLException(java.lang.String message)
message
- the message for this Exceptionpublic XMLException(java.lang.Exception 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.Exception exception)
message
- the detail message for this exceptionexception
- the nested exceptionpublic XMLException(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 java.lang.Exception getException()
public void setLocation(Location location)
location,
- the location information for this validation
exceptionpublic java.lang.String toString()
toString
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter printer)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream printer)
printStackTrace
in class java.lang.Throwable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |