com.adventnet.snmp.snmp2
Class SnmpException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.adventnet.snmp.snmp2.SnmpException
All Implemented Interfaces:
java.io.Serializable

public class SnmpException
extends java.lang.Exception
implements java.io.Serializable

Class of SNMP Exception - to catch and report SNMP errors.

See Also:
Serialized Form

Constructor Summary
SnmpException()
          Constructs an SnmpException with no detailed message.
SnmpException(java.lang.String s)
          Constructs an SnmpException with the specifc detail message.
 
Method Summary
static java.lang.String exceptionString(byte error)
          Constructs an SnmpException with the specified error message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpException

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

SnmpException

public SnmpException(java.lang.String s)
Constructs an SnmpException with the specifc detail message. A detail message is a String that describes this particular exception.
Parameters:
s - the detail message
Method Detail

exceptionString

public static java.lang.String exceptionString(byte error)
Constructs an SnmpException with the specified error message.
Parameters:
error - Uses the byte argument to determine error string.
Returns:
The message is a String that describes this particular exception.


Copyright (c)AdventNet Inc., 1996-2004