Module tikv::storage::errors[][src]

Types for storage related errors and associated helper methods.

Structs

Error

Errors for storage module. Wrapper type of ErrorInner.

Enums

ErrorHeaderKind

Tags of errors for storage module.

ErrorInner

Detailed errors for storage operations. This enum also unifies code for basic error handling functionality in a single place instead of being spread out.

Constants

GC_WORKER_IS_BUSY
SCHEDULER_IS_BUSY

Functions

extract_committed
extract_key_error
extract_key_errors
extract_kv_pairs
extract_region_error
get_error_kind_from_header

Get the ErrorHeaderKind enum that corresponds to the error in the protobuf message. Returns ErrorHeaderKind::Other if no match found.

get_tag_from_header

Get the metric tag of the error in the protobuf message. Returns “other” if no match found.

map_kv_pairs