Package org.apache.qpid.protonj2.codec
Class EncodeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- org.apache.qpid.protonj2.codec.EncodeException
-
- All Implemented Interfaces:
Serializable
public class EncodeException extends IllegalArgumentException
Exception thrown when a type encoder fails due to some unrecoverable error or violation of AMQP type specifications.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EncodeException()
Creates a genericEncodeException
with no cause or error description set.EncodeException(String message)
Creates aEncodeException
with the given error message.EncodeException(String message, Throwable cause)
Creates aEncodeException
with the given error message and assigned root cause exception.EncodeException(Throwable cause)
Creates aEncodeException
with the given assigned root cause exception.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
EncodeException
public EncodeException()
Creates a genericEncodeException
with no cause or error description set.
-
EncodeException
public EncodeException(String message)
Creates aEncodeException
with the given error message.- Parameters:
message
- The error message to convey with the exception.
-
EncodeException
public EncodeException(Throwable cause)
Creates aEncodeException
with the given assigned root cause exception.- Parameters:
cause
- The underlying exception that triggered this encode error to be thrown.
-
EncodeException
public EncodeException(String message, Throwable cause)
Creates aEncodeException
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.
-
-