Skip to content
1 min read · 80 words

Function: isException() ​

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

Defined in: src/lib/utils/exceptions.ts:97

Returns true if value is a @nhtio/adk!BaseException or satisfies its minimum duck-type shape.

Parameters ​

ParameterTypeDescription
valueunknownThe value to test.

Returns ​

value is BaseException

true when value conforms to the @nhtio/adk!BaseException shape.

Remarks ​

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