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
error codes to differentiate by, e.g. with a switch-case.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionthe buffer provided is too small for its purpose.consumer function of loop aborting it.opening Journal failed.field exists, but is not used/set.string provided is not valid for field namesthe journal opened has no (visible/accessible) entries."native" ByteBuffer not supported here; please provide one which has a backing array.performing filter operations without filter conditions definedno such field exists.no further interpretation of error code returned from underlying library; please check getNumericalErrorCode() provided.trying to access entries outside the valid journal range (e.g.could not find specified timestamp in journalthe error code received from underlying library should not have come up; it doesn't match the documented range. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JJournalException.ErrorCodesReturns the enum constant of this class with the specified name.static JJournalException.ErrorCodes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NUMERICAL_CODE
no further interpretation of error code returned from underlying library; please check getNumericalErrorCode() provided. -
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
"native" ByteBuffer not supported here; please provide one which has a backing array. -
BUFFER_TOO_SMALL
the buffer provided is too small for its purpose. -
FAILED_TO_OPEN
opening Journal failed. -
JOURNAL_HAS_NO_ENTRIES
the journal opened has no (visible/accessible) entries. -
OOB
trying to access entries outside the valid journal range (e.g. cursor at past-end position, or before-start) -
FIELD_EMPTY
field exists, but is not used/set. "null contents" -
NO_SUCH_FIELD
no such field exists. -
FIELD_NAME_INVALID
string provided is not valid for field names -
TIME_NOT_FOUND
could not find specified timestamp in journal -
NO_FILTER_DEFINED
performing filter operations without filter conditions defined -
CONSUMER_ENDING_LOOP
consumer function of loop aborting it.
-
-
Constructor Details
-
ErrorCodes
private ErrorCodes()
-
-
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
-