Package org.opennms.netmgt.snmp
Enum ErrorStatus
- java.lang.Object
-
- java.lang.Enum<ErrorStatus>
-
- org.opennms.netmgt.snmp.ErrorStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ErrorStatus>
public enum ErrorStatus extends java.lang.Enum<ErrorStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHORIZATION_ERROR
BAD_VALUE
COMMIT_FAILED
GEN_ERR
INCONSISTENT_NAME
INCONSISTENT_VALUE
NO_ACCESS
NO_CREATION
NO_ERROR
NO_SUCH_NAME
NOT_WRITABLE
READ_ONLY
RESOURCE_UNAVAILABLE
TOO_BIG
UNDO_FAILED
WRONG_ENCODING
WRONG_LENGTH
WRONG_TYPE
WRONG_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ErrorStatus
fromStatus(int status)
abstract boolean
isFatal()
Whether or not this error status should be fatal (ie, throw an exception).abstract boolean
retry()
Whether or not a retry should be attempted upon receiving this error code.static ErrorStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ErrorStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_ERROR
public static final ErrorStatus NO_ERROR
-
TOO_BIG
public static final ErrorStatus TOO_BIG
-
NO_SUCH_NAME
public static final ErrorStatus NO_SUCH_NAME
-
BAD_VALUE
public static final ErrorStatus BAD_VALUE
-
READ_ONLY
public static final ErrorStatus READ_ONLY
-
GEN_ERR
public static final ErrorStatus GEN_ERR
-
NO_ACCESS
public static final ErrorStatus NO_ACCESS
-
WRONG_TYPE
public static final ErrorStatus WRONG_TYPE
-
WRONG_LENGTH
public static final ErrorStatus WRONG_LENGTH
-
WRONG_ENCODING
public static final ErrorStatus WRONG_ENCODING
-
WRONG_VALUE
public static final ErrorStatus WRONG_VALUE
-
NO_CREATION
public static final ErrorStatus NO_CREATION
-
INCONSISTENT_VALUE
public static final ErrorStatus INCONSISTENT_VALUE
-
RESOURCE_UNAVAILABLE
public static final ErrorStatus RESOURCE_UNAVAILABLE
-
COMMIT_FAILED
public static final ErrorStatus COMMIT_FAILED
-
UNDO_FAILED
public static final ErrorStatus UNDO_FAILED
-
AUTHORIZATION_ERROR
public static final ErrorStatus AUTHORIZATION_ERROR
-
NOT_WRITABLE
public static final ErrorStatus NOT_WRITABLE
-
INCONSISTENT_NAME
public static final ErrorStatus INCONSISTENT_NAME
-
-
Method Detail
-
values
public static ErrorStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ErrorStatus c : ErrorStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isFatal
public abstract boolean isFatal()
Whether or not this error status should be fatal (ie, throw an exception).
-
retry
public abstract boolean retry()
Whether or not a retry should be attempted upon receiving this error code.
-
fromStatus
public static ErrorStatus fromStatus(int status)
-
-