|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.sun.management.snmp.SnmpStatusException
public class SnmpStatusException
Reports an error which occurred during a get/set operation on a mib node. This exception includes a status error code as defined in the SNMP protocol.
Field Summary | |
---|---|
static int |
badValue
Error code as defined in RFC 1448 for: badValue . |
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(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, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, 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
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(String s)
SnmpStatusException
with an error message.
The error status is set to 0 (noError) and the index to -1.
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()
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |