java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.exception.UnmarshalException
- All Implemented Interfaces:
Serializable
,ErrorCodeAccessor
,Trap
Thrown when unmarshaling / deserializing an object fails.
- See Also:
-
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
ConstructorsConstructorDescriptionUnmarshalException
(String aMessage) Instantiates a new unmarshal exception.UnmarshalException
(String aMessage, int aOffset) Instantiates a new unmarshal exception.UnmarshalException
(String aMessage, int aOffset, Throwable aCause) Instantiates a new unmarshal exception.UnmarshalException
(String aMessage, String aErrorCode) Instantiates a new unmarshal exception.UnmarshalException
(String aMessage, Throwable aCause) Instantiates a new unmarshal exception.UnmarshalException
(String aMessage, Throwable aCause, String aErrorCode) Instantiates a new unmarshal exception.UnmarshalException
(Throwable aCause) Instantiates a new unmarshal exception.UnmarshalException
(Throwable aCause, String aErrorCode) Instantiates a new unmarshal exception. -
Method Summary
Modifier and TypeMethodDescriptionint
In case of a char sequence, the offset represents the position at which unmarshaling failed.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 Details
-
UnmarshalException
Instantiates a new unmarshal exception.- Parameters:
aMessage
- The aMessage describing this exception.
-
UnmarshalException
Instantiates a new unmarshal exception.- Parameters:
aMessage
- The exception aMessage.aOffset
- The offset in the char sequence causing problems.aCause
- The originating exception in question.
-
UnmarshalException
Instantiates a new unmarshal exception.- Parameters:
aMessage
- The aMessage describing this exception.aOffset
- The offset in the char sequence causing problems.
-
UnmarshalException
Instantiates a new unmarshal exception. -
UnmarshalException
Instantiates a new unmarshal exception. -
UnmarshalException
Instantiates a new unmarshal exception.- Parameters:
aMessage
- The aMessage describing this exception.aErrorCode
- The error code identifying this exception.
-
UnmarshalException
Instantiates a new unmarshal exception. -
UnmarshalException
Instantiates a new unmarshal exception.
-
-
Method Details
-
getOffset
public int getOffset()In case of a char sequence, the offset represents the position at which unmarshaling failed.- Returns:
- The position at which unmarshaling failed or -1 if none such position is available.
-