Class MarshalException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.exolab.castor.core.exceptions.CastorException
org.exolab.castor.xml.XMLException
org.exolab.castor.xml.MarshalException
- All Implemented Interfaces:
Serializable
An exception that is used to signal marshalling exceptions.
- Version:
- $Revision: 8870 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
- Author:
- Keith Visco
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newMarshalExceptionwith no message or nested exception.MarshalException(String message) Creates a newMarshalExceptionwith the given message.MarshalException(String message, int errorCode) Deprecated.MarshalException(String message, Throwable exception) Creates a newMarshalExceptionwith the given message and nested exception.MarshalException(String message, Throwable exception, int errorCode) Deprecated.MarshalException(Throwable exception) Creates a newMarshalExceptionwith the given nested exception. -
Method Summary
Methods inherited from class XMLException
getErrorCode, setErrorCode, setLocation, toStringModifier and TypeMethodDescriptionintReturns the error code for this Exception, or -1 if no error code exists.voidsetErrorCode(int errorCode) Sets the error code for this Exception.voidsetLocation(Location location) Sets the location information for this Exception.toString()Returns the String representation of this Exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
BASE_CLASS_OR_VOID_ERR
- See Also:
-
NON_SERIALIZABLE_ERR
- See Also:
-
-
Constructor Details
-
MarshalException
public MarshalException()Creates a newMarshalExceptionwith no message or nested exception. -
MarshalException
Creates a newMarshalExceptionwith the given message.- Parameters:
message- the message for this exception
-
MarshalException
Deprecated.Creates a newMarshalExceptionwith the given message and an error code.- Parameters:
message- the message for this exceptionerrorCode- the error code for this exception
-
MarshalException
Creates a newMarshalExceptionwith the given nested exception.- Parameters:
exception- the nested exception
-
MarshalException
Creates a newMarshalExceptionwith the given message and nested exception.- Parameters:
message- the detail message for this exceptionexception- the nested exception
-
MarshalException
Deprecated.Creates a newMarshalExceptionwith the given message, nested exception, and error code.- Parameters:
message- the detail message for this exceptionexception- the nested exceptionerrorCode- the error code for this Exception
-