1
0
Fork 0
forked from s3lph/matemat
matemat/matemat/exceptions/DatabaseConsistencyError.py
2018-06-06 12:59:49 +02:00

15 lines
340 B
Python

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