Files
romm/backend/exceptions/config_exceptions.py
2024-01-18 11:46:12 +01:00

16 lines
505 B
Python

class ConfigNotReadableException(Exception):
def __init__(self):
self.message = "Config file can't be read. Check config.yml permissions"
super().__init__(self.message)
def __repr__(self) -> str:
return self.message
class ConfigNotWritableException(Exception):
def __init__(self):
self.message = "Config file is not writable. Check config.yml permissions"
super().__init__(self.message)
def __repr__(self) -> str:
return self.message