forked from s3lph/matemat
15 lines
340 B
Python
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
|