---
url: 'https://adk.nht.io/api/@nhtio/adk/factories/type-aliases/CreatedException.md'
description: >-
  Constructor signature of an exception class produced by {@link
  createException}.
---

# Type Alias: CreatedException\<T>

```ts
type CreatedException<T> = typeof BaseException & T extends []
  ? (options?: ExceptionOptions) => BaseException
  : (args: T, options?: ExceptionOptions) => BaseException;
```

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

Constructor signature of an exception class produced by [createException](../functions/createException.md).

## Type Parameters

| Type Parameter        | Default type | Description                                                                                                                                                                                               |
| --------------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `T` *extends* `any`\[] | \[]         | Tuple of printf-style format argument types. When `T` is an empty tuple the constructor takes no positional message arguments; when non-empty the first argument must be an array of values matching `T`. |
