# -*- coding: utf-8 -*-
# Part of ds_amcs_extract. See LICENSE file for full copyright and licensing details.

"""
OCR Service Exceptions
-----------------------
Custom exceptions for OCR service operations.
"""


class OCRException(Exception):
    """Base exception for OCR operations."""

    pass


class OCRConnectionError(OCRException):
    """Raised when connection to OCR server fails."""

    pass


class OCRTimeoutError(OCRException):
    """Raised when OCR request times out."""

    pass


class OCRAuthenticationError(OCRException):
    """Raised when authentication with OCR server fails."""

    pass


class OCRProcessingError(OCRException):
    """Raised when OCR processing fails on the server."""

    pass


class OCRQuotaExceededError(OCRException):
    """Raised when OCR quota is exceeded."""

    pass


class OCRDocumentTooLargeError(OCRException):
    """Raised when document exceeds size limit (20MB)."""

    pass


class OCRUnsupportedFormatError(OCRException):
    """Raised when document format is not supported."""

    pass
