Class Overview
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.
This API is a Sun Microsystems internal API and is subject
to change without notice.
Summary
Constants |
int |
badValue |
Error code as defined in RFC 1448 for: badValue . |
int |
noAccess |
Error code as defined in RFC 1448 for: noAccess . |
int |
noSuchInstance |
Error code for reporting a no such instance error. |
int |
noSuchName |
Error code as defined in RFC 1448 for: noSuchName . |
int |
noSuchObject |
Error code for reporting a no such object error. |
int |
readOnly |
Error code as defined in RFC 1448 for: readOnly . |
[Expand]
Inherited Constants |
From interface
com.sun.jmx.snmp.SnmpDefinitions
int |
CtxtConsFlag |
|
int |
authMask |
|
int |
authNoPriv |
|
int |
authPriv |
|
int |
authPrivMask |
|
int |
noAuthNoPriv |
|
int |
noGroupName |
|
int |
noSuchContext |
|
int |
noSuchView |
|
int |
notInView |
|
int |
pduGetBulkRequestPdu |
|
int |
pduGetNextRequestPdu |
|
int |
pduGetRequestPdu |
|
int |
pduGetResponsePdu |
|
int |
pduInformRequestPdu |
|
int |
pduReportPdu |
|
int |
pduSetRequestPdu |
|
int |
pduV1TrapPdu |
|
int |
pduV2TrapPdu |
|
int |
pduWalkRequest |
|
int |
privMask |
|
int |
reportableFlag |
|
int |
snmpAuthNotSupported |
|
int |
snmpBadSecurityLevel |
|
int |
snmpPrivNotSupported |
|
int |
snmpReqAborted |
|
int |
snmpReqEncodingError |
|
int |
snmpReqHandleTooBig |
|
int |
snmpReqInternalError |
|
int |
snmpReqPacketOverflow |
|
int |
snmpReqRefireAfterVbFix |
|
int |
snmpReqSocketIOError |
|
int |
snmpReqTimeout |
|
int |
snmpReqTooBigImpossible |
|
int |
snmpReqUnknownError |
|
int |
snmpRspAuthorizationError |
|
int |
snmpRspBadValue |
|
int |
snmpRspCommitFailed |
|
int |
snmpRspDecodingError |
|
int |
snmpRspEndOfTable |
|
int |
snmpRspGenErr |
|
int |
snmpRspInconsistentName |
|
int |
snmpRspInconsistentValue |
|
int |
snmpRspNoAccess |
|
int |
snmpRspNoCreation |
|
int |
snmpRspNoError |
|
int |
snmpRspNoSuchName |
|
int |
snmpRspNotWritable |
|
int |
snmpRspReadOnly |
|
int |
snmpRspResourceUnavailable |
|
int |
snmpRspTooBig |
|
int |
snmpRspUndoFailed |
|
int |
snmpRspWrongEncoding |
|
int |
snmpRspWrongLength |
|
int |
snmpRspWrongType |
|
int |
snmpRspWrongValue |
|
int |
snmpUnknownPrincipal |
|
int |
snmpUsmBadEngineId |
|
int |
snmpUsmInvalidTimeliness |
|
int |
snmpUsmSecurityModel |
|
int |
snmpV1AccessControlModel |
|
int |
snmpV1MsgProcessingModel |
|
int |
snmpV1SecurityModel |
|
int |
snmpV2AccessControlModel |
|
int |
snmpV2MsgProcessingModel |
|
int |
snmpV2SecurityModel |
|
int |
snmpV3AccessControlModel |
|
int |
snmpV3MsgProcessingModel |
|
byte |
snmpVersionOne |
|
byte |
snmpVersionThree |
|
byte |
snmpVersionTwo |
|
int |
snmpWrongSnmpVersion |
|
int |
trapAuthenticationFailure |
|
int |
trapColdStart |
|
int |
trapEgpNeighborLoss |
|
int |
trapEnterpriseSpecific |
|
int |
trapLinkDown |
|
int |
trapLinkUp |
|
int |
trapWarmStart |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Throwable
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Constants
public
static
final
int
badValue
Error code as defined in RFC 1448 for: badValue
.
Constant Value:
3
(0x00000003)
public
static
final
int
noAccess
Error code as defined in RFC 1448 for: noAccess
.
Constant Value:
6
(0x00000006)
public
static
final
int
noSuchInstance
Error code for reporting a no such instance error.
Constant Value:
224
(0x000000e0)
public
static
final
int
noSuchName
Error code as defined in RFC 1448 for: noSuchName
.
Constant Value:
2
(0x00000002)
public
static
final
int
noSuchObject
Error code for reporting a no such object error.
Constant Value:
225
(0x000000e1)
public
static
final
int
readOnly
Error code as defined in RFC 1448 for: readOnly
.
Constant Value:
4
(0x00000004)
Public Constructors
public
SnmpStatusException
(int status)
Constructs a new SnmpStatusException
with the specified status error.
public
SnmpStatusException
(int status, int index)
Constructs a new SnmpStatusException
with the specified status error and status index.
Parameters
status
| The error status. |
index
| The error index.
|
public
SnmpStatusException
(String s)
Constructs a new SnmpStatusException
with an error message.
The error status is set to 0 (noError) and the index to -1.
public
SnmpStatusException
(SnmpStatusException x, int index)
Constructs a new SnmpStatusException
with an error index.
Parameters
x
| The original SnmpStatusException . |
index
| The error index.
|
Public Methods
public
int
getErrorIndex
()
Returns the index of the error.
A value of -1 means that the index is not known/applicable.