Skip to content
1 min read · 69 words

Type Alias: ExceptionOptions

ts
type ExceptionOptions = ErrorOptions & {
  code?: string;
  fatal?: boolean;
  status?: number;
};

Options accepted by @nhtio/adk!BaseException (and factory-created exceptions) beyond the standard ErrorOptions.

Type Declaration

NameType
code?string
fatal?boolean
status?number

Remarks

These mirror the static defaults on @nhtio/adk!BaseException but allow per-throw overrides so a single exception class can carry different metadata at different throw sites.