Error thrown for validation failures.

Hierarchy (view full)

Constructors

Properties

code: ErrorCode = ErrorCode.UNKNOWN_ERROR

Error code from ErrorCode enum

context: Record<string, unknown> = {}

Additional context about the error

Methods