|
||||||||||
| 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
public class XMLException
An exception that is used to signal an error that has occured during marshaling or unmarshaling.
| Constructor Summary | |
|---|---|
XMLException()
Creates a new XMLException with no message or nested Exception. |
|
XMLException(String message)
Creates a new XMLException with the given message. |
|
XMLException(String message,
int errorCode)
Creates a new XMLException with the given message and error code. |
|
XMLException(String message,
Throwable exception)
Creates a new XMLException with the given message and nested Exception. |
|
XMLException(String message,
Throwable exception,
int errorCode)
Creates a new XMLException with the given message, nested Exception, and errorCode. |
|
XMLException(Throwable exception)
Creates a new XMLException with the given nested Exception. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.exolab.castor.core.exceptions.CastorException |
|---|
getCause, 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 XMLException()
public XMLException(String message)
message - the message for this Exceptionpublic XMLException(Throwable exception)
exception - the nested exception
public XMLException(String message,
int errorCode)
message - the message for this ExceptionerrorCode - the errorCode for this Exception
public XMLException(String message,
Throwable exception)
message - the detail message for this Exceptionexception - the nested exception
public XMLException(String message,
Throwable exception,
int errorCode)
message - the detail message for this exceptionexception - the nested exceptionerrorCode - the errorCode for this Exception| Method Detail |
|---|
public void setLocation(Location location)
location - The location information for this validation exception.public String toString()
toString in class Throwablepublic int getErrorCode()
public void setErrorCode(int errorCode)
errorCode - the error code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||