ORPCTaggedError creates Effect-native tagged error classes for oRPC procedures.
import.ts
Basic error
basic.ts
USER_NOT_FOUND_ERROR.
Error with options
with-options.ts
Error with typed data
with-data.ts
Helpers
| Export | Purpose |
|---|---|
isORPCTaggedError(value) | Check an error instance. |
isORPCTaggedErrorClass(value) | Check an error class. |
toORPCError(error) | Convert to an ORPCError. |
effectErrorMapToErrorMap(map) | Convert an Effect error map to an oRPC error map. |
createEffectErrorConstructorMap(map) | Build constructors for handler errors. |