public enum ValueValidation extends java.lang.Enum<ValueValidation>
Error codes are declared in SnmpConstants
Enum Constant and Description |
---|
AUTHORIZATION_ERROR
An authorization error occurred.
|
BAD_VALUE
The requested SNMP operation tried to change a variable but
it specified either a syntax or value error.
|
COMMIT_FAILED
No validation errors occurred, but no variables were updated.
|
GENERAL_ERROR
An error other than one of those listed here occurred during
the requested SNMP operation.
|
INCONSISTENT_NAME
The variable does not exist; the agent cannot create it
because the named object instance is inconsistent with the
values of other managed objects.
|
INCONSISTENT_VALUE
The value is inconsistent with values of other managed objects.
|
NO_ACCESS
The specified SNMP variable is not accessible.
|
NO_CREATION
The variable does not exist, and the agent cannot create it.
|
NO_SUCH_NAME
The requested SNMP operation identified an unknown variable.
|
NOT_WRITEABLE
The variable exists but the agent cannot modify it.
|
READ_ONLY
The requested SNMP operation tried to change a variable
that was not allowed to change, according to the community
profile of the variable.
|
RESOURCE_UNAVAILABLE
Assigning the value to the variable requires allocation of
resources that are currently unavailable.
|
SUCCESS
The agent reports that no errors occurred during transmission.
|
TOO_BIG
The agent could not place the results of the requested
SNMP operation in a single SNMP message.
|
UNDO_FAILED
No validation errors occurred.
|
WRONG_ENCODING
The value contains an Abstract Syntax Notation One (ASN.1)
encoding that is inconsistent with the ASN.1 tag of the field.
|
WRONG_LENGTH
The value specifies a length that is inconsistent with the
length required for the variable.
|
WRONG_TYPE
The value specifies a type that is inconsistent with the type
required for the variable.
|
WRONG_VALUE
The value cannot be assigned to the variable.
|
Modifier and Type | Method and Description |
---|---|
static ValueValidation |
find(int code) |
static ValueValidation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ValueValidation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueValidation SUCCESS
public static final ValueValidation TOO_BIG
public static final ValueValidation NO_SUCH_NAME
public static final ValueValidation BAD_VALUE
public static final ValueValidation READ_ONLY
public static final ValueValidation GENERAL_ERROR
public static final ValueValidation NO_ACCESS
public static final ValueValidation WRONG_TYPE
public static final ValueValidation WRONG_LENGTH
public static final ValueValidation WRONG_ENCODING
public static final ValueValidation WRONG_VALUE
public static final ValueValidation NO_CREATION
public static final ValueValidation INCONSISTENT_VALUE
public static final ValueValidation RESOURCE_UNAVAILABLE
public static final ValueValidation COMMIT_FAILED
public static final ValueValidation UNDO_FAILED
public static final ValueValidation AUTHORIZATION_ERROR
public static final ValueValidation NOT_WRITEABLE
public static final ValueValidation INCONSISTENT_NAME
public static ValueValidation[] values()
for (ValueValidation c : ValueValidation.values()) System.out.println(c);
public static ValueValidation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static final ValueValidation find(int code)