# exceptions

Python API: `luxonis_train.utils.exceptions`

The error raised when two parts of the model cannot work together.

## Classes

| Name | Description |
| --- | --- |
| [`IncompatibleError`](https://docs.luxonis.com/software-v3/ai-inference/model-source/training/luxonis-train/luxonis-train-api-reference/utils/exceptions.md#exceptions-Classes-IncompatibleError) | Error raised when two parts of the model cannot work together. |

### exception `IncompatibleError`

```python
class IncompatibleError(Exception)
```

Error raised when two parts of the model cannot work together.

A node raises it when the value of a property does not match the type annotation of that property in the node class. The error
message names the predecessor of the node as a possible cause.

An attached module raises it in two cases:

 * The task of its node is not in the supported tasks of the module.
 * Its node is not an instance of the `node` type annotation of the module.
