|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.adventnet.snmp.snmp2.SnmpException
com.adventnet.snmp.snmp2.agent.AgentSnmpException
public class AgentSnmpException
The purpose of this class is to catch and report Agent side errors.
| Field Summary | |
|---|---|
(package private) int |
errindex
|
(package private) byte |
errstat
|
(package private) byte |
errvalue
|
| Constructor Summary | |
|---|---|
AgentSnmpException()
Constructs a AgentSnmpException with no detail message. |
|
AgentSnmpException(java.lang.String s)
Constructs a AgentSnmpException with the specified detail message. |
|
AgentSnmpException(java.lang.String s,
byte errstat)
Constructs a AgentSnmpException with the specified detail message error status. |
|
AgentSnmpException(java.lang.String s,
byte errstat,
byte errvalue)
Constructs a AgentSnmpException with the specified detail message error status and value. |
|
| Method Summary | |
|---|---|
byte |
getErrstat()
Gets for errstat to be sent along wih the exception which will be caught at the agentside and set to appropriate value in response PDU . |
byte |
getErrvalue()
Getter for errvalue |
void |
setErrstat(byte errstat)
Sets the errstat value |
void |
setErrvalue(byte errvalue)
Setter for errvalue. |
java.lang.String |
toString()
Getter for the string representation of the exception. |
java.lang.String |
toTagString()
This method gives a descriptive message wherever possible for errstat and errvalue |
| Methods inherited from class com.adventnet.snmp.snmp2.SnmpException |
|---|
exceptionString |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
byte errstat
byte errvalue
int errindex
| Constructor Detail |
|---|
public AgentSnmpException()
public AgentSnmpException(java.lang.String s)
s - the detail message
public AgentSnmpException(java.lang.String s,
byte errstat)
A detail message is a String that describes this particular exception. Error status is a byte described the status of the exception.
s - the detail messageerrstat - the error status
for the Pdu
public AgentSnmpException(java.lang.String s,
byte errstat,
byte errvalue)
A detail message is a String that describes this particular exception. Error status is a byte described the status of the exception. Error value is a byte described the value of the exception.
s - the detail messageerrstat - the error statuserrvalue - the errstat value to be set
for the Pdu| Method Detail |
|---|
public void setErrstat(byte errstat)
errstat - the error status valuepublic byte getErrstat()
SnmpAPIpublic void setErrvalue(byte errvalue)
For V2c and v3 each varbind's errIndex is set (varbindIndex) in case of failure
errvalue - the error value of the exceptionpublic byte getErrvalue()
For V2c and v3 each varbind's errIndex is set (varbindIndex) in case of failure
public java.lang.String toString()
toString in class java.lang.Throwablepublic java.lang.String toTagString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||