---
url: 'https://adk.nht.io/api/@nhtio/adk/factories/type-aliases/ExceptionOptions.md'
description: >-
  Options accepted by {@link @nhtio/adk!BaseException} (and factory-created
  exceptions) beyond the standard `ErrorOptions`.
---

# Type Alias: ExceptionOptions

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

Defined in: [lib/utils/exceptions.ts:14](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/utils/exceptions.ts#L14)

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

## Type Declaration

| Name      | Type      | Defined in                                                                                                    |
| --------- | --------- | ------------------------------------------------------------------------------------------------------------- |
| `code?`   | `string`  | [lib/utils/exceptions.ts:15](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/utils/exceptions.ts#L15) |
| `fatal?`  | `boolean` | [lib/utils/exceptions.ts:17](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/utils/exceptions.ts#L17) |
| `status?` | `number`  | [lib/utils/exceptions.ts:16](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/utils/exceptions.ts#L16) |

## Remarks

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