com.ireasoning.protocol.snmp
Class SnmpException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.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 |
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
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
Copyright © 2002 iReasoning Inc. All Rights Reserved.