Source code for churro_ocr.errors

"""Public exception types for the churro-ocr package."""

from __future__ import annotations


[docs] class ChurroError(RuntimeError): """Base exception for package-level failures."""
[docs] class ConfigurationError(ChurroError): """Raised when a backend is missing required runtime configuration."""
[docs] class ProviderError(ChurroError): """Raised when an OCR or page detection provider returns an unusable response."""