> For the complete documentation index, see [llms.txt](https://docs.seldon.ai/alibi-detect/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.seldon.ai/alibi-detect/api-reference/exceptions.md).

# alibi\_detect.exceptions

This module defines the Alibi Detect exception hierarchy and common exceptions used across the library.

## `AlibiDetectException`

*Inherits from:* `Exception`, `BaseException`, `ABC`

### Constructor

```python
AlibiDetectException(self, message: str) -> None
```

| Name      | Type  | Default | Description        |
| --------- | ----- | ------- | ------------------ |
| `message` | `str` |         | The error message. |

## `NotFittedError`

*Inherits from:* `AlibiDetectException`, `Exception`, `BaseException`, `ABC`

### Constructor

```python
NotFittedError(self, object_name: str) -> None
```

| Name          | Type  | Default | Description                   |
| ------------- | ----- | ------- | ----------------------------- |
| `object_name` | `str` |         | The name of the unfit object. |

## `ThresholdNotInferredError`

*Inherits from:* `AlibiDetectException`, `Exception`, `BaseException`, `ABC`

### Constructor

```python
ThresholdNotInferredError(self, object_name: str) -> None
```

| Name          | Type  | Default | Description                                                |
| ------------- | ----- | ------- | ---------------------------------------------------------- |
| `object_name` | `str` |         | The name of the object that does not have a threshold fit. |
