"""Exceptions for the backtesting engine.""" class EngineError(Exception): """Base engine error.""" class EngineHalted(EngineError): """Engine execution was halted by policy.""" class LookAheadBiasDetected(EngineError): """Walk-forward execution detected look-ahead bias.""" class BacktestNotComplete(EngineError): """Backtest did not complete.""" class BacktestPaused(EngineError): """Backtest paused due to resource limits."""