mirror of
https://github.com/craigerl/aprsd.git
synced 2026-02-15 20:43:44 -05:00
Fixed the declarations of some of the client and driver methods to be staticmethod.
23 lines
679 B
Python
23 lines
679 B
Python
class MissingConfigOptionException(Exception):
|
|
"""Missing a config option."""
|
|
|
|
def __init__(self, config_option):
|
|
self.message = f"Option '{config_option}' was not in config file"
|
|
|
|
|
|
class ConfigOptionBogusDefaultException(Exception):
|
|
"""Missing a config option."""
|
|
|
|
def __init__(self, config_option, default_fail):
|
|
self.message = (
|
|
f"Config file option '{config_option}' needs to be "
|
|
f"changed from provided default of '{default_fail}'"
|
|
)
|
|
|
|
|
|
class APRSClientNotConfiguredException(Exception):
|
|
"""APRS client is not configured."""
|
|
|
|
def __init__(self):
|
|
self.message = 'APRS client is not configured.'
|