Skip to content

const CAS_INVALID_INPUT_ERROR_CODES: Readonly<typeof invalidInputCodes>

Defined in: packages/cas/src/errors.ts:27

Every caller-contract code this package throws.

INVALID_ADDRESS rejects an address that is not a safe storage key before a backend sees it. INVALID_HASH rejects a hash output that would not be one, which turns a misconfigured hash into a named failure instead of a store full of keys no other process can reproduce. INVALID_ARTIFACT covers an artifact knotkit/wire cannot frame. HASH_FAILURE and BACKEND_FAILURE cover an injected dependency that threw: the injection is part of the caller’s contract, so its failure is the caller’s to fix, and it must not escape as an anonymous exception from inside a library call.