Class EncodeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class EncodeException
    extends java.lang.IllegalArgumentException
    Exception thrown when a type encoder fails due to some unrecoverable error or violation of AMQP type specifications.
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EncodeException

        public EncodeException()
        Creates a generic EncodeException with no cause or error description set.
      • EncodeException

        public EncodeException​(java.lang.String message)
        Creates a EncodeException with the given error message.
        Parameters:
        message - The error message to convey with the exception.
      • EncodeException

        public EncodeException​(java.lang.Throwable cause)
        Creates a EncodeException with the given assigned root cause exception.
        Parameters:
        cause - The underlying exception that triggered this encode error to be thrown.
      • EncodeException

        public EncodeException​(java.lang.String message,
                               java.lang.Throwable cause)
        Creates a EncodeException 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.