Class UnmarshalException

All Implemented Interfaces:
Serializable, ErrorCodeAccessor, Trap

public class UnmarshalException extends AbstractException
Thrown when unmarshaling / deserializing an object fails.
See Also:
  • Constructor Details

    • UnmarshalException

      public UnmarshalException(String aMessage)
      Instantiates a new unmarshal exception.
      Parameters:
      aMessage - the message
    • UnmarshalException

      public UnmarshalException(String aMessage, int aOffset, Throwable aCause)
      Instantiates a new unmarshal exception.
      Parameters:
      aMessage - The exception message.
      aOffset - The offset in the char sequence causing problems.
      aCause - The originating exception in question.
    • UnmarshalException

      public UnmarshalException(String aMessage, int aOffset)
      Instantiates a new unmarshal exception.
      Parameters:
      aMessage - the message
      aOffset - The offset in the char sequence causing problems.
    • UnmarshalException

      public UnmarshalException(String message, Throwable cause)
      Instantiates a new unmarshal exception.
      Parameters:
      message - the message
      cause - the cause
    • UnmarshalException

      public UnmarshalException(Throwable cause)
      Instantiates a new unmarshal exception.
      Parameters:
      cause - the cause
    • UnmarshalException

      public UnmarshalException(String aMessage, String aErrorCode)
      Instantiates a new unmarshal exception.
      Parameters:
      aMessage - the message
      aErrorCode - the error code
    • UnmarshalException

      public UnmarshalException(String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new unmarshal exception.
      Parameters:
      aMessage - the message
      aCause - the cause
      aErrorCode - the error code
    • UnmarshalException

      public UnmarshalException(Throwable aCause, String aErrorCode)
      Instantiates a new unmarshal exception.
      Parameters:
      aCause - the cause
      aErrorCode - the error code
  • 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.