# tinker_cookbook.exceptions.TrainingError

## _class_ [**tinker_cookbook.exceptions.TrainingError**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/exceptions.py#L134)( _[TinkerCookbookError](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/exceptions/tinkercookbookerror/), RuntimeError_)

An error during a training loop.

Base class for errors that occur while executing SL, RL, DPO, or distillation training loops. Inherits from `RuntimeError` for backward compatibility.

## Referenced by

- [tinker_cookbook.exceptions.AllTrajectoriesFailedError](https://tinker-docs.thinking-machines-ai/cookbook/api-reference/exceptions/alltrajectoriesfailederror/)
- [tinker_cookbook.exceptions.CheckpointError](https://tinker-docs.thinking-machines-ai/cookbook/api-reference/exceptions/checkpointerror/)
