19 lines
537 B
Python
19 lines
537 B
Python
# app/src/storage/exceptions.py
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
# Базовая ошибка storage-слоя.
|
|
class StorageError(Exception):
|
|
"""Base storage layer error."""
|
|
|
|
|
|
# Ошибка хранилища справочника инструментов.
|
|
class InstrumentStoreError(StorageError):
|
|
"""Instrument store contract or operation error."""
|
|
|
|
|
|
# Ошибка хранилища канонических котировок.
|
|
class QuoteStoreError(StorageError):
|
|
"""Quote store contract or operation error."""
|