mirror of
https://github.com/FlipsideCrypto/sdk.git
synced 2026-02-06 10:46:43 +00:00
14 lines
344 B
Python
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)
|