Enum Class SnmpErrorStatus

java.lang.Object
java.lang.Enum<SnmpErrorStatus>
org.snmp4j.model.snmp.spi.SnmpErrorStatus
All Implemented Interfaces:
Serializable, Comparable<SnmpErrorStatus>, java.lang.constant.Constable

public enum SnmpErrorStatus extends Enum<SnmpErrorStatus>
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 Constants
    Enum Constant
    Description
    Unauthorized 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 Type
    Method
    Description
    fromSnmpErrorStatus(int errorStatus)
    Gets the SnmpErrorStatus enum value based on the given SNMP error status as defined by SnmpConstants.
    int
    Returns the SNMP error status as integer value as defined by SnmpConstants.
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • timeout

      public static final SnmpErrorStatus timeout
      Operation timed out (undefined error).
    • lexicographicOrder

      public static final SnmpErrorStatus lexicographicOrder
      GETNEXT (GETBULK) return OID <= requested OID.
    • report

      public static final SnmpErrorStatus report
      The command responder returned a REPORT PDU that cannot be (automatically) resolved by the command generator.
    • ioError

      public static final SnmpErrorStatus ioError
      IO error.
    • noError

      public static final SnmpErrorStatus noError
      Operation success (no error).
    • tooBig

      public static final SnmpErrorStatus tooBig
      PDU encoding is too big for the transport used.
    • noSuchName

      public static final SnmpErrorStatus noSuchName
      No such variable binding name, see error index.
    • badValue

      public static final SnmpErrorStatus badValue
      Bad value in variable binding, see error index.
    • readOnly

      public static final SnmpErrorStatus readOnly
      The variable binding is read-only, see error index.
    • genErr

      public static final SnmpErrorStatus genErr
      An unspecific error caused by a variable binding, see error index.
    • noAccess

      public static final SnmpErrorStatus noAccess
      The variable binding is not accessible by the current MIB view, see error index.
    • wrongType

      public static final SnmpErrorStatus wrongType
      The variable binding's value has the wrong type, see error index.
    • wrongLength

      public static final SnmpErrorStatus wrongLength
      The variable binding's value has the wrong length, see error index.
    • wrongValue

      public static final SnmpErrorStatus wrongValue
      The variable binding's value has a value that could under no circumstances be assigned, see error index.
    • wrongEncoding

      public static final SnmpErrorStatus wrongEncoding
      The variable binding's value has the wrong encoding, see error index.
    • noCreation

      public static final SnmpErrorStatus noCreation
      The specified object does not exists and cannot be created, see error index.
    • inconsistentValue

      public static final SnmpErrorStatus inconsistentValue
      The variable binding's value is presently inconsistent with the current state of the target object, see error index.
    • resourceUnavailable

      public static final SnmpErrorStatus resourceUnavailable
      The resource needed to assign a variable binding's value is presently unavailable, see error index.
    • commitFailed

      public static final SnmpErrorStatus commitFailed
      Unable to commit a value, see error index.
    • undoFailed

      public static final SnmpErrorStatus undoFailed
      Unable to undo a committed value, see error index.
    • authorizationError

      public static final SnmpErrorStatus authorizationError
      Unauthorized access, see error index.
    • notWritable

      public static final SnmpErrorStatus notWritable
      The variable's value cannot be modified, see error index.
    • inconsistentName

      public static final SnmpErrorStatus inconsistentName
      The specified object does not exists and presently it cannot be created, see error index.
  • Method Details

    • values

      public static SnmpErrorStatus[] 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

      public static SnmpErrorStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getErrorStatus

      public int getErrorStatus()
      Returns the SNMP error status as integer value as defined by SnmpConstants.
      Returns:
      the integer value of this error status.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SnmpErrorStatus>
    • fromSnmpErrorStatus

      public static SnmpErrorStatus fromSnmpErrorStatus(int errorStatus)
      Gets the SnmpErrorStatus enum value based on the given SNMP error status as defined by SnmpConstants.
      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.