## UsefulViewsError


Base class for every error useful-views raises.


Usage

``` python
UsefulViewsError(
    message,
    *,
    recipe=None,
)
```


## Attributes


`recipe`  
The recipe the error is about, when there is one.

`sync_result`  
When the error stopped [sync](sync.md#useful_views.sync), a [SyncResult](SyncResult.md#useful_views.SyncResult) saying what sync had already done (those changes are kept); else None.


## Methods

| Name | Description |
|----|----|
| [to_dict()](#to_dict) | The error as plain data: its type, message and attributes. |

------------------------------------------------------------------------


#### to_dict()


The error as plain data: its type, message and attributes.


Usage

``` python
to_dict()
```
