UnsupportedAddressClassException
public class MessageException
extends java.io.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 | Description |
---|---|
MessageException() |
|
MessageException(java.lang.String message) |
|
MessageException(java.lang.String message,
int snmp4jErrorStatus) |
Creates a
MessageException with error message and
SNMP4J specific error status (see getSnmp4jErrorStatus()
for details. |
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. |
MessageException(StatusInformation status) |
Creates a
MessageException from a
StatusInformation object. |
Modifier and Type | Method | Description |
---|---|---|
int |
getSnmp4jErrorStatus() |
Gets the SNMP4J specific error status associated with this exception.
|
StatusInformation |
getStatusInformation() |
|
void |
setStatusInformation(StatusInformation statusInformation) |
public MessageException()
public MessageException(StatusInformation status)
MessageException
from a
StatusInformation
object.status
- a StatusInformation
instance.public MessageException(java.lang.String message)
public MessageException(java.lang.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(java.lang.String message, int snmp4jErrorStatus, java.lang.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 © 2018 SNMP4J.org. All rights reserved.