Package org.apache.qpid.protonj2.codec
Class DecodeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- org.apache.qpid.protonj2.codec.DecodeException
-
- All Implemented Interfaces:
java.io.Serializable
public class DecodeException extends java.lang.IllegalArgumentException
Exception thrown when a type decoder fails due to some unrecoverable error or violation of AMQP type specifications for an incoming encoded byte sequence.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DecodeException()
Creates a genericDecodeException
with no cause or error description set.DecodeException(java.lang.String message)
Creates aDecodeException
with the given error message.DecodeException(java.lang.String message, java.lang.Throwable cause)
Creates aDecodeException
with the given error message and assigned root cause exception.DecodeException(java.lang.Throwable cause)
Creates aDecodeException
with the given assigned root cause exception.
-
-
-
Constructor Detail
-
DecodeException
public DecodeException()
Creates a genericDecodeException
with no cause or error description set.
-
DecodeException
public DecodeException(java.lang.String message)
Creates aDecodeException
with the given error message.- Parameters:
message
- The error message to convey with the exception.
-
DecodeException
public DecodeException(java.lang.Throwable cause)
Creates aDecodeException
with the given assigned root cause exception.- Parameters:
cause
- The underlying exception that triggered this encode error to be thrown.
-
DecodeException
public DecodeException(java.lang.String message, java.lang.Throwable cause)
Creates aDecodeException
with the given error message and assigned root cause exception.- Parameters:
message
- The error message to convey with the exception.cause
- The underlying exception that triggered this encode error to be thrown.
-
-