# flytekitplugins.dbt.error

## Directory

### Errors

| Exception | Description |
|-|-|
| [`DBTHandledError`](https://www.union.ai/docs/v1/flyte/api-reference/plugins/dbt/flytekitplugins.dbt.error/page.md#flytekitpluginsdbterrordbthandlederror) | DBTHandledError wraps error logs and message from command execution that returns ``exit code 1``. |
| [`DBTUnhandledError`](https://www.union.ai/docs/v1/flyte/api-reference/plugins/dbt/flytekitplugins.dbt.error/page.md#flytekitpluginsdbterrordbtunhandlederror) | DBTUnhandledError wraps error logs and message from command execution that returns ``exit code 2``. |

## flytekitplugins.dbt.error.DBTHandledError

DBTHandledError wraps error logs and message from command execution that returns ``exit code 1``.

Parameters
----------
message : str
    Error message.
logs : list of str
    Logs produced by the command execution.

Attributes
----------
message : str
    Error message.
logs : list of str
    Logs produced by the command execution.

### Parameters

```python
class DBTHandledError(
    message: str,
    logs: typing.List[str],
)
```
| Parameter | Type | Description |
|-|-|-|
| `message` | `str` | |
| `logs` | `typing.List[str]` | |

## flytekitplugins.dbt.error.DBTUnhandledError

DBTUnhandledError wraps error logs and message from command execution that returns ``exit code 2``.

Parameters
----------
message : str
    Error message.
logs : list of str
    Logs produced by the command execution.

Attributes
----------
message : str
    Error message.
logs : list of str
    Logs produced by the command execution.

### Parameters

```python
class DBTUnhandledError(
    message: str,
    logs: typing.List[str],
)
```
| Parameter | Type | Description |
|-|-|-|
| `message` | `str` | |
| `logs` | `typing.List[str]` | |

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/plugins/dbt/flytekitplugins.dbt.error.md
**HTML**: https://www.union.ai/docs/v1/flyte/api-reference/plugins/dbt/flytekitplugins.dbt.error/
