# 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/index.md), 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.thinkingmachines.ai/cookbook/api-reference/exceptions/alltrajectoriesfailederror/index.md) - [tinker_cookbook.exceptions.CheckpointError](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/exceptions/checkpointerror/index.md)