Module org.snmp4j
Package org.snmp4j

Class MessageException

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    UnsupportedAddressClassException


    public class MessageException
    extends IOException
    The MessageException represents information about an exception occurred during message processing. The associated StatusInformation object provides (if present) detailed information about the error that occurred and the status of the processed message.
    Version:
    1.0.1
    Author:
    Frank Fock
    See Also:
    Serialized Form
    • Constructor Detail

      • MessageException

        public MessageException​()
      • MessageException

        public MessageException​(StatusInformation status)
        Creates a MessageException from a StatusInformation object.
        Parameters:
        status - a StatusInformation instance.
      • MessageException

        public MessageException​(String message)
      • MessageException

        public MessageException​(String message,
                                int snmp4jErrorStatus,
                                Throwable rootCause)
        Creates a MessageException with error message and SNMP4J specific error status (see getSnmp4jErrorStatus() for details.
        Parameters:
        message - an error message.
        snmp4jErrorStatus - a MessageProcessingModel or SecurityModel specific error status as defined by SnmpConstants.
        rootCause - the root cause represented by a Throwable.
        Since:
        2.2.6