|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--com.sun.jaw.snmp.common.SnmpStatusException
The SnmpStatusException
class reports an error which
occurred during a get/set operation on an mib node.
This exception includes a status error code as defined in SNMP protocol.
Field Summary | |
static int |
badValue
Error code as defined in RFC 1448 for: badValue . |
protected int |
errorIndex
Index of the error. |
protected int |
errorStatus
Status of the error. |
static int |
noAccess
Error code as defined in RFC 1448 for: noAccess . |
static int |
noSuchInstance
Error code for reporting a no such instance error. |
static int |
noSuchName
Error code as defined in RFC 1448 for: noSuchName . |
static int |
noSuchObject
Error code for reporting a no such object error. |
static int |
readOnly
Error code as defined in RFC 1448 for: readOnly . |
Constructor Summary | |
SnmpStatusException(int status)
Constructs a new SnmpStatusException with the specified status error. |
|
SnmpStatusException(int status,
int index)
Constructs a new SnmpStatusException with the specified status error and status index. |
|
SnmpStatusException(SnmpStatusException x,
int index)
Constructs a new SnmpStatusException with an error index. |
|
SnmpStatusException(java.lang.String s)
Constructs a new SnmpStatusException with an error message. |
Method Summary | |
int |
getErrorIndex()
Returns the index of the error. |
int |
getStatus()
Return the error status. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int noSuchName
noSuchName
.public static final int badValue
badValue
.public static final int readOnly
readOnly
.public static final int noAccess
noAccess
.public static final int noSuchInstance
public static final int noSuchObject
protected int errorStatus
protected int errorIndex
Constructor Detail |
public SnmpStatusException(int status)
SnmpStatusException
with the specified status error.status
- The error status.public SnmpStatusException(int status, int index)
SnmpStatusException
with the specified status error and status index.status
- The error status.index
- The error index.public SnmpStatusException(java.lang.String s)
SnmpStatusException
with an error message.s
- The error message.public SnmpStatusException(SnmpStatusException x, int index)
SnmpStatusException
with an error index.x
- The original SnmpStatusException
.index
- The error index.Method Detail |
public int getStatus()
public int getErrorIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |