13 lines
277 B
Python
13 lines
277 B
Python
# exceptions.py
|
|
from app.enmus.exception import ProviderErrorEnum
|
|
|
|
|
|
class ProviderError(Exception):
|
|
def __init__(self, message: str,code: ProviderErrorEnum) -> None:
|
|
super().__init__(message)
|
|
self.code=code
|
|
self.message = message
|
|
|
|
|
|
|