Module org.snmp4j
Package org.snmp4j

Class MessageException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    UnsupportedAddressClassException

    public class MessageException
    extends java.io.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​(java.lang.String message)
      • MessageException

        public MessageException​(java.lang.String message,
                                int snmp4jErrorStatus)
        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.
        Since:
        2.2
      • MessageException

        public MessageException​(java.lang.String message,
                                int snmp4jErrorStatus,
                                java.lang.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