snmp
Class SNMPRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
snmp.SNMPException
snmp.SNMPRequestException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- SNMPGetException, SNMPSetException
- public class SNMPRequestException
- extends SNMPException
Exception thrown when request to get or set the value of an SNMP OID on a device fails. Reason could be
that specified variable not supported by device, or that supplied community name has insufficient
privileges. errorStatus parameter allows the reason for the failure to be specified, and errorIndex
allows the index of the failed OID to be specified.
- See Also:
- Serialized Form
Constructor Summary |
SNMPRequestException(int errorIndex,
int errorStatus)
Create exception with errorIndex, errorStatus |
SNMPRequestException(java.lang.String message,
int errorIndex,
int errorStatus)
Create exception with errorIndex, errorStatus, and message string |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NO_ERROR
public static final int NO_ERROR
- See Also:
- Constant Field Values
VALUE_TOO_BIG
public static final int VALUE_TOO_BIG
- See Also:
- Constant Field Values
VALUE_NOT_AVAILABLE
public static final int VALUE_NOT_AVAILABLE
- See Also:
- Constant Field Values
BAD_VALUE
public static final int BAD_VALUE
- See Also:
- Constant Field Values
VALUE_READ_ONLY
public static final int VALUE_READ_ONLY
- See Also:
- Constant Field Values
FAILED
public static final int FAILED
- See Also:
- Constant Field Values
errorIndex
public int errorIndex
errorStatus
public int errorStatus
SNMPRequestException
public SNMPRequestException(int errorIndex,
int errorStatus)
- Create exception with errorIndex, errorStatus
SNMPRequestException
public SNMPRequestException(java.lang.String message,
int errorIndex,
int errorStatus)
- Create exception with errorIndex, errorStatus, and message string