def classify_write

mylsm-lsm-store@0.6.0.1 · src/DurableError.bend:119

import mylsm-lsm-store@0.6.0.1/src/DurableError.bend as DurableError
import Base

119# Selects the write error category from its append stage.
120def classify_write(phase: WritePhase, cause: WriteCause, operation: String, path: String) -> Error:
121  match phase:
122    case BeforeAppend{}:
123      classify_write_before(cause, operation, path)
124    case AppendStarted{}:
125      classify_write_after(cause, operation, path)

Uses (6)

Used by (0)

No other definition uses this definition.