snmp
Class SNMPRequestException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bysnmp.SNMPException
              extended bysnmp.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

Field Summary
static int BAD_VALUE
           
 int errorIndex
           
 int errorStatus
           
static int FAILED
           
static int NO_ERROR
           
static int VALUE_NOT_AVAILABLE
           
static int VALUE_READ_ONLY
           
static int VALUE_TOO_BIG
           
 
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
 

Field Detail

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
Constructor Detail

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