def classify_recovery
import mylsm-lsm-store@0.6.0.1/src/DurableError.bend as DurableErrorimport Base
import mylsm-lsm-store@0.6.0.1/src/Manifest.bend as Manifest
93# Maps recovery failures to typed public errors.
94def classify_recovery(+code: U32, +message: String, +operation: String, +path: String) -> Error:
95 Bool.pick(Error, U32.is_eq(code, Manifest.unsupported_version_error_code()),
96 error(UnsupportedFormat{}, operation, path, 0, "unsupported manifest version"),
97 classify_recovery.wal(code, message, operation, path))
Uses (9)
Used by (0)
No other definition uses this definition.