f213/education-backend

View on GitHub
src/apps/amocrm/exceptions.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
from core.exceptions import AppServiceException


class AmoCRMException(Exception):
    """Base exceptions for AmoCRM"""


class AmoCRMCacheException(AmoCRMException):
    """Raises when it's impossible to retrieve cached value"""


class AmoCRMServiceException(AppServiceException, AmoCRMException):
    """Base service exception for AmoCRM"""


__all__ = [
    "AmoCRMCacheException",
    "AmoCRMServiceException",
    "AmoCRMException",
]