Enum Class JJournalException.ErrorCodes

java.lang.Object
java.lang.Enum<JJournalException.ErrorCodes>
org.metabit.platform.interfacing.jjournal.JJournalException.ErrorCodes
All Implemented Interfaces:
Serializable, Comparable<JJournalException.ErrorCodes>, Constable
Enclosing class:
JJournalException

public static enum JJournalException.ErrorCodes extends Enum<JJournalException.ErrorCodes>
error codes to differentiate by, e.g. with a switch-case.
  • Enum Constant Details

    • NUMERICAL_CODE

      public static final JJournalException.ErrorCodes NUMERICAL_CODE
      no further interpretation of error code returned from underlying library; please check getNumericalErrorCode() provided.
    • UNEXPECTED_RETURN_CODE

      public static final JJournalException.ErrorCodes UNEXPECTED_RETURN_CODE
      the error code received from underlying library should not have come up; it doesn't match the documented range. check getNumericalErrorCode()?
    • NEED_BUFFER_WITH_BYTE_ARRAY

      public static final JJournalException.ErrorCodes NEED_BUFFER_WITH_BYTE_ARRAY
      "native" ByteBuffer not supported here; please provide one which has a backing array.
    • BUFFER_TOO_SMALL

      public static final JJournalException.ErrorCodes BUFFER_TOO_SMALL
      the buffer provided is too small for its purpose.
    • FAILED_TO_OPEN

      public static final JJournalException.ErrorCodes FAILED_TO_OPEN
      opening Journal failed.
    • JOURNAL_HAS_NO_ENTRIES

      public static final JJournalException.ErrorCodes JOURNAL_HAS_NO_ENTRIES
      the journal opened has no (visible/accessible) entries.
    • OOB

      public static final JJournalException.ErrorCodes OOB
      trying to access entries outside the valid journal range (e.g. cursor at past-end position, or before-start)
    • FIELD_EMPTY

      public static final JJournalException.ErrorCodes FIELD_EMPTY
      field exists, but is not used/set. "null contents"
    • NO_SUCH_FIELD

      public static final JJournalException.ErrorCodes NO_SUCH_FIELD
      no such field exists.
    • FIELD_NAME_INVALID

      public static final JJournalException.ErrorCodes FIELD_NAME_INVALID
      string provided is not valid for field names
    • TIME_NOT_FOUND

      public static final JJournalException.ErrorCodes TIME_NOT_FOUND
      could not find specified timestamp in journal
    • NO_FILTER_DEFINED

      public static final JJournalException.ErrorCodes NO_FILTER_DEFINED
      performing filter operations without filter conditions defined
    • CONSUMER_ENDING_LOOP

      public static final JJournalException.ErrorCodes CONSUMER_ENDING_LOOP
      consumer function of loop aborting it.
  • Constructor Details

    • ErrorCodes

      private ErrorCodes()
  • Method Details

    • values

      public static JJournalException.ErrorCodes[] 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 JJournalException.ErrorCodes 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