1
0
Fork 0
forked from s3lph/matemat
matemat/matemat/exceptions/AuthenticatonError.py

16 lines
353 B
Python

from typing import Optional
class AuthenticationError(Exception):
def __init__(self, msg: Optional[str] = None) -> None:
super().__init__()
self._msg: Optional[str] = msg
def __str__(self) -> str:
return f'AuthenticationError: {self._msg}'
@property
def msg(self) -> Optional[str]:
return self._msg