You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
632 B
Python

"""Oracle client exception hierarchy."""
from __future__ import annotations
from libs.common.retries import NonRetryableError, RetryableError
class OracleConnectionError(RetryableError):
"""Cannot connect to Stock Oracle (network down, refused)."""
class OracleTimeoutError(RetryableError):
"""Request to Stock Oracle timed out."""
class OracleServerError(RetryableError):
"""Stock Oracle returned 5xx."""
class OracleNotFoundError(NonRetryableError):
"""Stock Oracle returned 404 (resource not found)."""
class OracleClientError(NonRetryableError):
"""Stock Oracle returned 4xx (other than 404)."""