- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.refcodes.exception.AbstractException
-
- org.refcodes.exception.MarshalException
-
- All Implemented Interfaces:
Serializable
,ErrorCodeAccessor
,Trap
public class MarshalException extends AbstractException
Thrown when marshaling / serializing an object fails.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
ErrorCodeAccessor.ErrorCodeBuilder<B extends ErrorCodeAccessor.ErrorCodeBuilder<B>>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodeProperty
-
-
Constructor Summary
Constructors Constructor Description MarshalException(String aMessage)
Instantiates a new marshal exception.MarshalException(String aMessage, String aErrorCode)
Instantiates a new marshal exception.MarshalException(String message, Throwable cause)
Instantiates a new marshal exception.MarshalException(String aMessage, Throwable aCause, String aErrorCode)
Instantiates a new marshal exception.MarshalException(Throwable cause)
Instantiates a new marshal exception.MarshalException(Throwable aCause, String aErrorCode)
Instantiates a new marshal exception.
-
Method Summary
-
Methods inherited from class org.refcodes.exception.AbstractException
getErrorCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MarshalException
public MarshalException(String aMessage)
Instantiates a new marshal exception.- Parameters:
aMessage
- the message
-
MarshalException
public MarshalException(String message, Throwable cause)
Instantiates a new marshal exception.- Parameters:
message
- the messagecause
- the cause
-
MarshalException
public MarshalException(Throwable cause)
Instantiates a new marshal exception.- Parameters:
cause
- the cause
-
MarshalException
public MarshalException(String aMessage, String aErrorCode)
Instantiates a new marshal exception.- Parameters:
aMessage
- the messageaErrorCode
- the error code
-
MarshalException
public MarshalException(String aMessage, Throwable aCause, String aErrorCode)
Instantiates a new marshal exception.- Parameters:
aMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
-