Source code for petres.errors.horizon
"""Horizon-related error definitions."""
from __future__ import annotations
from .base import PetresError
[docs]
class HorizonError(PetresError):
"""Represent errors raised during horizon operations.
Use this exception to distinguish horizon-specific failures from other
domain errors and handle them consistently.
"""
default_message: str = "An error occurred related to horizon operations."