failure.unexpected_defect

failureThis is a failure. A function returns it as a value, so your code keeps running and you decide what to do.

What happened

A caught operation defect, distinct from the UnexpectedFailure exception bridge.

Fix

Inspect the private cause and fix the operation.

Check the fix

bun run test -- src/schema.test.ts

Run it after the fix. It passes when the fix worked.

Where it comes from

Package
@arki/failure
Version
0.2.0 · next release candidate
Source
src/foundations.ts:126