Class MessageEncodingInvalid

  • All Implemented Interfaces:
    java.io.Serializable

    public class MessageEncodingInvalid
    extends MessageException
    Represents the inability to encode or decode a Message, caused by an encoding being specified with an unexpected format.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageEncodingInvalid​(Message message, java.lang.Object encoding)
      Creates new exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object encoding()
      Gets 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

      • MessageEncodingInvalid

        public MessageEncodingInvalid​(Message message,
                                      java.lang.Object encoding)
        Creates new exception.
        Parameters:
        message - Offending message.
        encoding - Unexpectedly formatted encoding.
    • Method Detail

      • encoding

        public java.lang.Object encoding()
        Gets encoding causing this exception to be thrown.
        Returns:
        Invalid encoding descriptor.
      • getMessage

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