Class MessageEncodingException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class MessageEncodingException
    extends java.lang.RuntimeException
    Exception thrown when a message was encoded with an unsupported encoder.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageEncodingException​(java.lang.String encoding)
      New instance.
      MessageEncodingException​(java.lang.String encoding, java.lang.Throwable cause)
      New instance.
      MessageEncodingException​(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace, java.lang.String encoding)
      New instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String encoding()
      The name of the encoding used when the Exception was thrown.
      • 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

      • MessageEncodingException

        public MessageEncodingException​(java.lang.String encoding)
        New instance.
        Parameters:
        encoding - the name of the encoding used
      • MessageEncodingException

        public MessageEncodingException​(java.lang.String encoding,
                                        java.lang.Throwable cause)
        New instance.
        Parameters:
        cause - for this exception.
        encoding - the name of the encoding used
      • MessageEncodingException

        public MessageEncodingException​(java.lang.String message,
                                        java.lang.Throwable cause,
                                        boolean enableSuppression,
                                        boolean writableStackTrace,
                                        java.lang.String encoding)
        New instance.
        Parameters:
        message - for the exception.
        cause - for this exception.
        enableSuppression - whether or not suppression is enabled or disabled.
        writableStackTrace - whether or not the stack trace should be writable.
        encoding - the name of the encoding used
    • Method Detail

      • encoding

        public java.lang.String encoding()
        The name of the encoding used when the Exception was thrown.
        Returns:
        the name of the encoding used when the Exception was thrown