public class MessageException extends IOException
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.Constructor and Description |
---|
MessageException() |
MessageException(StatusInformation status)
Creates a
MessageException from a
StatusInformation object. |
MessageException(String message) |
MessageException(String message,
int snmp4jErrorStatus)
Creates a
MessageException with error message and
SNMP4J specific error status (see getSnmp4jErrorStatus()
for details. |
MessageException(String message,
int snmp4jErrorStatus,
Throwable rootCause)
Creates a
MessageException with error message and
SNMP4J specific error status (see getSnmp4jErrorStatus()
for details. |
Modifier and Type | Method and Description |
---|---|
int |
getSnmp4jErrorStatus()
Gets the SNMP4J specific error status associated with this exception.
|
StatusInformation |
getStatusInformation() |
void |
setStatusInformation(StatusInformation statusInformation) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MessageException()
public MessageException(StatusInformation status)
MessageException
from a
StatusInformation
object.status
- a StatusInformation
instance.public MessageException(String message)
public MessageException(String message, int snmp4jErrorStatus)
MessageException
with error message and
SNMP4J specific error status (see getSnmp4jErrorStatus()
for details.message
- an error message.snmp4jErrorStatus
- a MessageProcessingModel
or SecurityModel
specific error status as defined by SnmpConstants
.public MessageException(String message, int snmp4jErrorStatus, Throwable rootCause)
MessageException
with error message and
SNMP4J specific error status (see getSnmp4jErrorStatus()
for details.message
- an error message.snmp4jErrorStatus
- a MessageProcessingModel
or SecurityModel
specific error status as defined by SnmpConstants
.rootCause
- the root cause represented by a Throwable.public StatusInformation getStatusInformation()
public void setStatusInformation(StatusInformation statusInformation)
public int getSnmp4jErrorStatus()
MessageProcessingModel
or SecurityModel
specific error status as defined by SnmpConstants
.Copyright © 2020 SNMP4J.org. All rights reserved.