def classify_write_after
mylsm-lsm-store@0.6.0.1 · src/DurableError.bend:109
import mylsm-lsm-store@0.6.0.1/src/DurableError.bend as DurableError
import Base
109
110def classify_write_after(cause: WriteCause, operation: String, path: String) -> Error:
111 match cause:
112 case ValidationFailure{}:
113 error(InvalidArgument{}, operation, path, 0, "")
114 case WriteLimitReached{}:
115 error(ResourceLimit{}, operation, path, 0, "")
116 case WriteHostFailure{code, message}:
117 error(CommitUnknown{}, operation, path, code, message)