oRPC Validation Errors
Installation
SKILL.md
Validation Errors
oRPC provides built-in validation errors that work well by default. You can customize them when needed.
Customizing with Client Interceptors (Preferred)
Client Interceptors run before error validation, ensuring custom errors are properly validated.
import { onError, ORPCError, ValidationError } from '@orpc/server'
import * as z from 'zod'