Module avalanche_types::subnet::rpc::errors
source · Expand description
Custom database errors and helpers.
Enums
Functions
- Returns a common database error from a tonic Status or .
- Returns an io::Error with ErrorKind::Other from a string.
- Accepts an error and returns a corruption error if the original error is not “database closed” or “not found”.
- Returns true if the io::Error is ErrorKind::NotFound and contains a string “not found”.