|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ireasoning.protocol.snmp.SnmpError
This class contains SNMP error information: errorIndex and errorStatus
Field Summary | |
static int |
AUTH_FAILED
|
static SnmpError |
NO_ERROR
No error |
static SnmpError |
REJECT_PACKET
Reject packet |
Constructor Summary | |
SnmpError()
Default constructor |
|
SnmpError(int status,
int index)
Constructor |
Method Summary | |
int |
getErrorIndex()
|
int |
getErrorStatus()
|
boolean |
isAuthFailed()
|
boolean |
isErrorFree()
Returns true if both errorStatus and errorIndex is 0 |
void |
setAuthFailed()
To indiate authentication failure error |
void |
setErrorIndex(int i)
|
void |
setErrorStatus(int status)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final SnmpError NO_ERROR
public static final SnmpError REJECT_PACKET
public static final int AUTH_FAILED
Constructor Detail |
public SnmpError()
public SnmpError(int status, int index)
status
- error statusindex
- error indexMethod Detail |
public boolean isErrorFree()
public boolean isAuthFailed()
public void setAuthFailed()
public void setErrorStatus(int status)
public int getErrorStatus()
public void setErrorIndex(int i)
public int getErrorIndex()
public String toString()
|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |