# tinker_cookbook.rl.RolloutError

## _class_ [**tinker_cookbook.rl.RolloutError**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/rl/types.py#L285)()

A captured error from a failed trajectory rollout.

Stored on [`TrajectoryGroup`](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/rl/trajectorygroup/) so error information flows through return values (including across process boundaries via pickle) without requiring shared mutable state.

**Fields:**

- [**error_type**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/rl/types.py#L299) ( _str_) – The exception class name, e.g. `'BadRequestError'`.
- [**error_message**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/rl/types.py#L301) ( _str_) – `str(exception)` — the human-readable error description.

## Referenced by

- [tinker_cookbook.rl.TrajectoryGroup](https://tinker-docs.thinking-machines-ai/cookbook/api-reference/rl/trajectorygroup/)
