Class MessageEncodingUnsupported

  • All Implemented Interfaces:
    java.io.Serializable

    public class MessageEncodingUnsupported
    extends MessageException
    Represents the inability to encode or decode a Message, caused by an unsupported encoding being specified.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      EncodingDescriptor encoding()
      Gets unsupported encoding causing this exception to be thrown.
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

      • MessageEncodingUnsupported

        public MessageEncodingUnsupported​(Message message,
                                          EncodingDescriptor encoding)
        Creates new exception.
        Parameters:
        message - Offending message.
        encoding - Unsupported encoding.
    • Method Detail

      • encoding

        public EncodingDescriptor encoding()
        Gets unsupported encoding causing this exception to be thrown.
        Returns:
        Unsupported encoding descriptor.
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable