OpenWebRX_Solar_SDR/openwebrx/owrx/form/error.py
Carsten Schmiemann 0c0cc5a490 Migrate to git
2022-02-10 23:48:55 +01:00

15 lines
354 B
Python

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