~/bend-docscommunity

src/DurableError.bend checks

raw source on the hub · import mylsm-lsm-store@0.5.0.0/src/DurableError.bend as DurableError

2 imports
import Base
import ./Manifest.bend as Manifest

Types

type ErrorKind source · line 5 · raw

Data

Lists the structured durable error categories.

type Error source · line 17 · raw

Data

Carries operation, path, and host details with its category.

type OpenCause source · line 21 · raw

Data

Records the failure that ended a database open.

type WritePhase source · line 32 · raw

Data

Identifies whether a write failed before or after append.

type WriteCause source · line 37 · raw

Data

Records the codec or host failure behind a write result.

Definitions

def error source · line 43 · raw

@kind:ErrorKind -> @operation:String -> @path:String -> @code:U32 -> @message:String -> Error

Builds an error with its structured host and operation details.

def classify_open source · line 47 · raw

@cause:OpenCause -> @operation:String -> @path:String -> Error

Maps open causes to their public error categories.

def classify_recovery.limit source · line 66 · raw

@+code:U32 -> @+message:String -> @+operation:String -> @+path:String -> Error

def classify_recovery.corruption source · line 71 · raw

@+code:U32 -> @+message:String -> @+operation:String -> @+path:String -> Error

def classify_recovery.sst source · line 76 · raw

@+code:U32 -> @+message:String -> @+operation:String -> @+path:String -> Error

def classify_recovery.levels source · line 81 · raw

@+code:U32 -> @+message:String -> @+operation:String -> @+path:String -> Error

def classify_recovery.wal source · line 86 · raw

@+code:U32 -> @+message:String -> @+operation:String -> @+path:String -> Error

def classify_recovery source · line 92 · raw

@+code:U32 -> @+message:String -> @+operation:String -> @+path:String -> Error

Maps recovery failures to typed public errors.

def classify_write_before source · line 98 · raw

@cause:WriteCause -> @operation:String -> @path:String -> Error

Classifies failures that occur before WAL append begins.

def classify_write_after source · line 108 · raw

@cause:WriteCause -> @operation:String -> @path:String -> Error

Classifies failures after append begins as CommitUnknown.

def classify_write source · line 118 · raw

@phase:WritePhase -> @cause:WriteCause -> @operation:String -> @path:String -> Error

Selects the write error category from its append stage.