# lawref.evaluator.limits

*module*

Семантические лимиты — SPEC [§238](https://github.com/arxohq/law/blob/master/spec/SPEC.ru/31-part-xxx-scalability.ru.md#238-resource-limits).

Превышение — детерминированный отказ RESOURCE_LIMIT, а не молчаливо неполный
вывод: исключение поднимается из глубины замыкания и обрывает вычисление.

## lawref.evaluator.limits.LimitExceeded

*class*

```python
class LimitExceeded(Exception)
```

Bases: `Exception`

[§238](https://github.com/arxohq/law/blob/master/spec/SPEC.ru/31-part-xxx-scalability.ru.md#238-resource-limits): превышение семантического лимита — детерминированный отказ RESOURCE_LIMIT.

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/evaluator/limits.py#L9-L16)

### lawref.evaluator.limits.LimitExceeded.code

*attribute* · *instance attribute*

```python
code = 'RESOURCE_LIMIT'
```

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

### lawref.evaluator.limits.LimitExceeded.counter

*attribute* · *instance attribute*

```python
counter = counter
```

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

### lawref.evaluator.limits.LimitExceeded.limit

*attribute* · *instance attribute*

```python
limit = limit
```

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

## lawref.evaluator.limits.check_limit

*function*

```python
def check_limit(limits: dict, counter: str, value: int) -> None
```

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/evaluator/limits.py#L19-L22)
