Skip to content
1 min read · 83 words

Type Alias: ExceptionOptions

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

Defined in: lib/utils/exceptions.ts:14

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

Type Declaration

NameTypeDefined in
code?stringlib/utils/exceptions.ts:15
fatal?booleanlib/utils/exceptions.ts:17
status?numberlib/utils/exceptions.ts:16

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.