sdk/python/shroomdk/errors/user_error.py
2022-07-25 15:36:37 -04:00

14 lines
344 B
Python

from typing import Union
from .base_error import BaseError
class UserError(BaseError):
"""
Base class for all user errors.
"""
def __init__(self, status_code: int, message: Union[str, None]):
self.message = f"user error occured with status code: {status_code}, msg: {message}"
super().__init__(self.message)