---
url: 'https://adk.nht.io/api/@nhtio/adk/factories/functions/isException.md'
---

# Function: isException()

```ts
function isException(value: unknown): value is BaseException;
```

Defined in: [src/lib/utils/exceptions.ts:97](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/lib/utils/exceptions.ts#L97)

Returns `true` if `value` is a [@nhtio/adk!BaseException](../classes/BaseException.md) or satisfies its minimum duck-type shape.

## Parameters

| Parameter | Type      | Description        |
| --------- | --------- | ------------------ |
| `value`   | `unknown` | The value to test. |

## Returns

`value is BaseException`

`true` when `value` conforms to the [@nhtio/adk!BaseException](../classes/BaseException.md) shape.

## Remarks

The duck-typing path handles exceptions that cross module or realm boundaries where
`instanceof` would return `false` for structurally identical objects.
