Class CodecException

All Implemented Interfaces:
Serializable

public class CodecException extends RuntimeException
Signals that a encoder/decoder error of some kind has occurred.
See Also:
  • Constructor Details

    • CodecException

      public CodecException()
      Constructs a new CodecException instance.
    • CodecException

      public CodecException(String message)
      Constructs a new CodecException instance with a message.
      Parameters:
      message - the detail message.
    • CodecException

      public CodecException(Throwable cause)
      Constructs a new CodecException instance with a cause.
      Parameters:
      cause - the cause of the exception.
    • CodecException

      public CodecException(String message, Throwable cause)
      Constructs a new CodecException instance with a message and cause.
      Parameters:
      message - the detail message.
      cause - the cause of the exception.
    • CodecException

      public CodecException(int errorCode)
      Constructs a new CodecException instance with an error code.
      Parameters:
      errorCode - the error code.
    • CodecException

      public CodecException(String message, int errorCode)
      Constructs a new CodecException instance with a message and error code.
      Parameters:
      message - the detail message.
      errorCode - the error code.
    • CodecException

      public CodecException(int errorCode, Throwable cause)
      Constructs a new CodecException instance with an error code and cause.
      Parameters:
      errorCode - the error code.
      cause - the cause of the exception.
    • CodecException

      public CodecException(String message, int errorCode, Throwable cause)
      Constructs a new CodecException instance with a message, error code and cause.
      Parameters:
      message - the detail message.
      errorCode - the error code.
      cause - the cause of the exception.
  • Method Details

    • getErrorCode

      public int getErrorCode()
      Returns the error code of this CodecException.
      Returns:
      the error code or zero (0) if none specified.