import {EnvValidationError} from '@fuzdev/fuz_app/env/load.js'; Error thrown when environment validation fails.
Contains structured information for apps to format their own error messages.
inheritance
Errorraw
The raw env values that were read, every key of the schema, unset ones as undefined.
type Record<string, string | undefined>
issues
The validation issues, which hold no env value, only the keys in their paths.
type SchemaIssue[]
all_undefined
True if every env var was undefined (nothing loaded).
type boolean
constructor
type new (raw: Record<string, string | undefined>, issues: SchemaIssue[]): EnvValidationError
raw
Record<string, string | undefined>issues
SchemaIssue[]format_issues
Format the validation issues as human-readable strings.
type (): string[]
string[]array of formatted issue strings like "PORT: expected decimal digits, received string"