Package org.snmp4j.model.snmp.spi
Enum Class SnmpErrorStatus
- All Implemented Interfaces:
Serializable
,Comparable<SnmpErrorStatus>
,java.lang.constant.Constable
The
SnmpErrorStatus
represents the values of the SNMP error status
values.- Author:
- Frank Fock
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnauthorized access, see error index.Bad value in variable binding, see error index.Unable to commit a value, see error index.An unspecific error caused by a variable binding, see error index.The specified object does not exists and presently it cannot be created, see error index.The variable binding's value is presently inconsistent with the current state of the target object, see error index.IO error.GETNEXT (GETBULK) return OID <= requested OID.The variable binding is not accessible by the current MIB view, see error index.The specified object does not exists and cannot be created, see error index.Operation success (no error).No such variable binding name, see error index.The variable's value cannot be modified, see error index.The variable binding is read-only, see error index.The command responder returned a REPORT PDU that cannot be (automatically) resolved by the command generator.The resource needed to assign a variable binding's value is presently unavailable, see error index.Operation timed out (undefined error).PDU encoding is too big for the transport used.Unable to undo a committed value, see error index.The variable binding's value has the wrong encoding, see error index.The variable binding's value has the wrong length, see error index.The variable binding's value has the wrong type, see error index.The variable binding's value has a value that could under no circumstances be assigned, see error index. -
Method Summary
Modifier and TypeMethodDescriptionstatic SnmpErrorStatus
fromSnmpErrorStatus
(int errorStatus) Gets the SnmpErrorStatus enum value based on the given SNMP error status as defined bySnmpConstants
.int
Returns the SNMP error status as integer value as defined bySnmpConstants
.toString()
static SnmpErrorStatus
Returns the enum constant of this class with the specified name.static SnmpErrorStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
timeout
Operation timed out (undefined error). -
lexicographicOrder
GETNEXT (GETBULK) return OID <= requested OID. -
report
The command responder returned a REPORT PDU that cannot be (automatically) resolved by the command generator. -
ioError
IO error. -
noError
Operation success (no error). -
tooBig
PDU encoding is too big for the transport used. -
noSuchName
No such variable binding name, see error index. -
badValue
Bad value in variable binding, see error index. -
readOnly
The variable binding is read-only, see error index. -
genErr
An unspecific error caused by a variable binding, see error index. -
noAccess
The variable binding is not accessible by the current MIB view, see error index. -
wrongType
The variable binding's value has the wrong type, see error index. -
wrongLength
The variable binding's value has the wrong length, see error index. -
wrongValue
The variable binding's value has a value that could under no circumstances be assigned, see error index. -
wrongEncoding
The variable binding's value has the wrong encoding, see error index. -
noCreation
The specified object does not exists and 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. -
commitFailed
Unable to commit a value, see error index. -
undoFailed
Unable to undo a committed value, see error index. -
authorizationError
Unauthorized access, see error index. -
notWritable
The variable's value cannot be modified, see error index. -
inconsistentName
The specified object does not exists and presently it cannot be created, see error index.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getErrorStatus
public int getErrorStatus()Returns the SNMP error status as integer value as defined bySnmpConstants
.- Returns:
- the integer value of this error status.
-
toString
- Overrides:
toString
in classEnum<SnmpErrorStatus>
-
fromSnmpErrorStatus
Gets the SnmpErrorStatus enum value based on the given SNMP error status as defined bySnmpConstants
.- Parameters:
errorStatus
- a SNMP error status value.- Returns:
- the corresponding SnmpErrorStatus enum or null if such a mapping thus not exists for the provided integer value.
-