HOME

com.ireasoning.protocol.snmp
Class SnmpException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.ireasoning.protocol.snmp.SnmpException
All Implemented Interfaces:
Serializable

public class SnmpException
extends RuntimeException

General Snmp exception.

See Also:
Serialized Form

Constructor Summary
SnmpException(int errorStatusCode)
          Constructs a new exception with the specified detail message.
SnmpException(String mesg)
          Constructs a new exception with the specified detail message.
SnmpException(String mesg, int errorStatusCode)
          Constructs a new exception with the specified detail message.
 
Method Summary
 int getErrorStatus()
          Returns a non-zero value to indicate that an exception occurred
 void setErrorStatus(int status)
          Sets the error status code
 
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

SnmpException

public SnmpException(String mesg)
Constructs a new exception with the specified detail message.

Parameters:
mesg - the detail message.

SnmpException

public SnmpException(String mesg,
                     int errorStatusCode)
Constructs a new exception with the specified detail message.

Parameters:
mesg - the detail message.
errorStatusCode - error status code
See Also:
SnmpErrorStatus

SnmpException

public SnmpException(int errorStatusCode)
Constructs a new exception with the specified detail message.

Parameters:
errorStatusCode - error status code
See Also:
SnmpErrorStatus
Method Detail

getErrorStatus

public int getErrorStatus()
Returns a non-zero value to indicate that an exception occurred


setErrorStatus

public void setErrorStatus(int status)
Sets the error status code


HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.