~/bend-docscommunity

src/DurableError.bend checks

raw source on the hub · import mylsm-lsm-store@0.6.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 19 · raw

Data

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

type OpenCause source · line 23 · raw

Data

Records the failure that ended a database open.

type WritePhase source · line 34 · raw

Data

Identifies whether a write failed before or after append.

type WriteCause source · line 39 · raw

Data

Records the codec or host failure behind a write result.

Definitions

def error source · line 45 · 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 49 · raw

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

Maps open causes to their public error categories.

def classify_recovery.limit source · line 68 · raw

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

def classify_recovery.corruption source · line 73 · raw

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

def classify_recovery.sst source · line 78 · raw

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

def classify_recovery.levels source · line 83 · raw

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

def classify_recovery.wal source · line 88 · raw

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

def classify_recovery source · line 94 · raw

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

Maps recovery failures to typed public errors.

def classify_write_before source · line 100 · raw

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

Classifies failures that occur before WAL append begins.

def classify_write_after source · line 110 · raw

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

Classifies failures after append begins as CommitUnknown.

def classify_write source · line 120 · raw

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

Selects the write error category from its append stage.