pub enum ErrorKind {
    Message(String),
    Io(Error),
    DataIntegrity(Box<Error>),
    InvalidTreeName,
    KeyTooLarge,
    ValueTooLarge,
    KeysNotOrdered,
    Internal(InternalError),
    TreeCompacted,
    Vault(Box<dyn SendSyncError>),
    TransactionPushedOutOfOrder,
}
Expand description

An error from Nebari.

Variants

Message(String)

An error has occurred. The string contains human-readable error message. This error is only used in situations where a user is not expected to be able to recover automatically from the error.

Io(Error)

An error occurred while performing IO.

DataIntegrity(Box<Error>)

An unrecoverable data integrity error was encountered.

InvalidTreeName

An invalid tree name was provided.

Valid characters are:

  • 'a'..='z'
  • 'A'..='Z'
  • '0'..='9'
  • '-' (Hyphen)
  • '_' (Underscore)
  • '.' (Period)

KeyTooLarge

A key was too large.

ValueTooLarge

A value was too large.

KeysNotOrdered

A multi-key operation did not have its keys ordered.

Internal(InternalError)

An internal error occurred. These errors are not intended to be recoverable and represent some internal error condition.

TreeCompacted

The underlying tree file has been compacted, and the request cannot be completed. Reopen the file and try again.

Vault(Box<dyn SendSyncError>)

An error ocurred in the vault.

TransactionPushedOutOfOrder

An transaction was pushed to the log out of order.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more