Error thrown when environment validation fails.
Contains structured information for apps to format their own error messages.
inheritance
Error
raw
The raw env values that were read.
type Record<string, string | undefined>
zod_error
The Zod validation error.
type z.core.$ZodError
all_undefined
True if every env var was undefined (nothing loaded).
type boolean
constructor
type new (raw: Record<string, string | undefined>, zod_error: $ZodError<unknown>): EnvValidationError
raw
Record<string, string | undefined>zod_error
$ZodError<unknown>format_issues
Format Zod validation issues as human-readable strings.
type (): string[]
string[]array of formatted issue strings like "PORT: Expected number"