|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.adventnet.snmp.snmp2.agent.AgentRuntimeException
public class AgentRuntimeException
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 | |
|---|---|
AgentRuntimeException()
Constructor for AgentRunTimeException. |
|
AgentRuntimeException(java.lang.String s)
Constructs a AgentRuntimeException with the specified detail message. |
|
AgentRuntimeException(java.lang.String s,
byte errstat)
Constructs a AgentRuntimeException with the specified detail message and error status. |
|
AgentRuntimeException(java.lang.String s,
byte errstat,
byte errvalue)
Constructs a AgentRuntimeException 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()
gets the errvalue for v2c and v3 |
void |
setErrstat(byte err)
sets for errstat value |
void |
setErrvalue(byte err)
sets the errvalue for v2c ad v3 |
java.lang.String |
toString()
Getter for the string representation of the exception. |
| 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 AgentRuntimeException()
public AgentRuntimeException(java.lang.String s)
s - the detail message
public AgentRuntimeException(java.lang.String s,
byte errstat)
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
public AgentRuntimeException(java.lang.String s,
byte errstat,
byte errvalue)
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 error value| Method Detail |
|---|
public byte getErrstat()
public void setErrstat(byte err)
err - the error statuspublic byte getErrvalue()
public void setErrvalue(byte err)
err - the error valuepublic java.lang.String toString()
toString in class java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||