All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Snmp.SnmpException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----Snmp.SnmpException

public class SnmpException
extends Exception
Class of SNMP Exception - to catch and report SNMP errors


Constructor Index

 o SnmpException()
Constructs an SnmpException with no detail message.
 o SnmpException(String)
Constructs an SnmpException with the specified detail message.

Method Index

 o exceptionString(byte)
Constructs an SnmpException with the specified error message.

Constructors

 o SnmpException
 public SnmpException()
Constructs an SnmpException with no detail message. A detail message is a String that describes this particular exception.

 o SnmpException
 public SnmpException(String s)
Constructs an SnmpException with the specified detail message. A detail message is a String that describes this particular exception.

Parameters:
s - the detail message

Methods

 o exceptionString
 public static String exceptionString(byte error)
Constructs an SnmpException with the specified error message. Uses the byte argument to determine error string. The message is a String that describes this particular exception. The following errors result in the associated message. The first column is the byte value, then the SnmpAPI constant, and the third the description of the error.
0 SnmpAPI.SNMP_ERR_NOERROR: No Error
1 SnmpAPI.SNMP_ERR_TOOBIG Response message would have been too large
2 SnmpAPI.SNMP_ERR_NOSUCHNAME There is no such variable name in this MIB
3 SnmpAPI.SNMP_ERR_BADVALUE The value given has the wrong type or length
4 SnmpAPI.SNMP_ERR_READONLY This variable is read only
5 SnmpAPI.SNMP_ERR_GENERR A general failure occured


All Packages  Class Hierarchy  This Package  Previous  Next  Index