snmp
Class SNMPSetException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bysnmp.SNMPException
              extended bysnmp.SNMPRequestException
                  extended bysnmp.SNMPSetException
All Implemented Interfaces:
java.io.Serializable

public class SNMPSetException
extends SNMPRequestException

Exception thrown when attempt to 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.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class snmp.SNMPRequestException
BAD_VALUE, errorIndex, errorStatus, FAILED, NO_ERROR, VALUE_NOT_AVAILABLE, VALUE_READ_ONLY, VALUE_TOO_BIG
 
Constructor Summary
SNMPSetException(int errorIndex, int errorStatus)
          Create exception with errorIndex and errorStatus
SNMPSetException(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
 

Constructor Detail

SNMPSetException

public SNMPSetException(int errorIndex,
                        int errorStatus)
Create exception with errorIndex and errorStatus


SNMPSetException

public SNMPSetException(java.lang.String message,
                        int errorIndex,
                        int errorStatus)
Create exception with errorIndex, errorStatus and message string