# lawref.query.errors

*module*

Структурные диагностики LawQL (`LDC-Qxxxx`).

## lawref.query.errors.QueryError

*class* · *dataclass*

```python
class QueryError(ValueError)
```

Bases: `ValueError`

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/query/errors.py#L8-L24)

### lawref.query.errors.QueryError.code

*attribute* · *instance attribute*

```python
code: str
```

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/query/errors.py#L10-L10)

### lawref.query.errors.QueryError.column

*attribute* · *class attribute* · *instance attribute*

```python
column: int | None = None
```

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/query/errors.py#L13-L13)

### lawref.query.errors.QueryError.hints

*attribute* · *class attribute* · *instance attribute*

```python
hints: tuple[str, ...] = ()
```

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/query/errors.py#L14-L14)

### lawref.query.errors.QueryError.line

*attribute* · *class attribute* · *instance attribute*

```python
line: int | None = None
```

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/query/errors.py#L12-L12)

### lawref.query.errors.QueryError.message

*attribute* · *instance attribute*

```python
message: str
```

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/query/errors.py#L11-L11)

## lawref.query.errors.diagnostic

*function*

```python
def diagnostic(exc: QueryError) -> dict
```

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/query/errors.py#L27-L35)
