OpenWebRX_Solar_SDR/openwebrx/owrx/form/error.py

16 lines
354 B
Python
Raw Normal View History

2022-02-10 22:48:55 +00:00
class FormError(Exception):
def __init__(self, key, message):
super().__init__("Error processing form data for {}: {}".format(key, message))
self.key = key
self.message = message
def getKey(self):
return self.key
def getMessage(self):
return self.message
class ValidationError(FormError):
pass