Serializable
, Comparable<SnmpErrorStatus>
public enum SnmpErrorStatus extends Enum<SnmpErrorStatus>
SnmpErrorStatus
represents the values of the SNMP error status
values.Enum Constant | Description |
---|---|
authorizationError |
Unauthorized access, see error index.
|
badValue |
Bad value in variable binding, see error index.
|
commitFailed |
Unable to commit a value, see error index.
|
genErr |
An unspecific error caused by a variable binding, see error index.
|
inconsistentName |
The specified object does not exists and presently it cannot be created,
see error index.
|
inconsistentValue |
The variable binding's value is presently inconsistent with the current
state of the target object, see error index.
|
ioError |
IO error.
|
lexicographicOrder |
GETNEXT (GETBULK) return OID <= requested OID.
|
noAccess |
The variable binding is not accessible by the current MIB view, see error
index.
|
noCreation |
The specified object does not exists and cannot be created,
see error index.
|
noError |
Operation success (no error).
|
noSuchName |
No such variable binding name, see error index.
|
notWritable |
The variable's value cannot be modified, see error index.
|
readOnly |
The variable binding is read-only, see error index.
|
report |
The command responder returned a REPORT PDU that cannot be (automatically) resolved by the command generator.
|
resourceUnavailable |
The resource needed to assign a variable binding's value is presently
unavailable, see error index.
|
timeout |
Operation timed out (undefined error).
|
tooBig |
PDU encoding is too big for the transport used.
|
undoFailed |
Unable to undo a committed value, see error index.
|
wrongEncoding |
The variable binding's value has the wrong encoding, see error index.
|
wrongLength |
The variable binding's value has the wrong length, see error index.
|
wrongType |
The variable binding's value has the wrong type, see error index.
|
wrongValue |
The variable binding's value has a value that could under no circumstances
be assigned, see error index.
|
Modifier and Type | Method | Description |
---|---|---|
static SnmpErrorStatus |
fromSnmpErrorStatus(int errorStatus) |
Gets the SnmpErrorStatus enum value based on the given SNMP error status
as defined by
SnmpConstants . |
int |
getErrorStatus() |
Returns the SNMP error status as integer value as defined
by
SnmpConstants . |
String |
toString() |
|
static SnmpErrorStatus |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static SnmpErrorStatus[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SnmpErrorStatus timeout
public static final SnmpErrorStatus lexicographicOrder
public static final SnmpErrorStatus report
public static final SnmpErrorStatus ioError
public static final SnmpErrorStatus noError
public static final SnmpErrorStatus tooBig
public static final SnmpErrorStatus noSuchName
public static final SnmpErrorStatus badValue
public static final SnmpErrorStatus readOnly
public static final SnmpErrorStatus genErr
public static final SnmpErrorStatus noAccess
public static final SnmpErrorStatus wrongType
public static final SnmpErrorStatus wrongLength
public static final SnmpErrorStatus wrongValue
public static final SnmpErrorStatus wrongEncoding
public static final SnmpErrorStatus noCreation
public static final SnmpErrorStatus inconsistentValue
public static final SnmpErrorStatus resourceUnavailable
public static final SnmpErrorStatus commitFailed
public static final SnmpErrorStatus undoFailed
public static final SnmpErrorStatus authorizationError
public static final SnmpErrorStatus notWritable
public static final SnmpErrorStatus inconsistentName
public static SnmpErrorStatus[] values()
for (SnmpErrorStatus c : SnmpErrorStatus.values()) System.out.println(c);
public static SnmpErrorStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getErrorStatus()
SnmpConstants
.public String toString()
toString
in class Enum<SnmpErrorStatus>
public static SnmpErrorStatus fromSnmpErrorStatus(int errorStatus)
SnmpConstants
.errorStatus
- a SNMP error status value.Copyright © 2020 SNMP4J.org. All rights reserved.