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 aMessage describing this exception.
    • UnmarshalException

      public UnmarshalException(String aMessage, int aOffset, Throwable aCause)
      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

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

      public UnmarshalException(String aMessage, Throwable aCause)
      Instantiates a new unmarshal exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
    • UnmarshalException

      public UnmarshalException(Throwable aCause)
      Instantiates a new unmarshal exception.
      Parameters:
      aCause - The Throwable (Exception) causing this exception.
    • UnmarshalException

      public UnmarshalException(String aMessage, String aErrorCode)
      Instantiates a new unmarshal exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aErrorCode - The error code identifying this exception.
    • UnmarshalException

      public UnmarshalException(String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new unmarshal exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • UnmarshalException

      public UnmarshalException(Throwable aCause, String aErrorCode)
      Instantiates a new unmarshal exception.
      Parameters:
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this 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.