mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 17:17:02 +02:00
Add form level errors
This commit is contained in:
parent
527f586419
commit
cf7bf4d304
2 changed files with 28 additions and 3 deletions
|
@ -114,8 +114,8 @@ class ApplicationStatusError(Exception):
|
|||
return f"{self.message}"
|
||||
|
||||
@classmethod
|
||||
def get_error_message(self, code=None):
|
||||
return self._error_mapping.get(code)
|
||||
def get_error_message(cls, code=None):
|
||||
return cls._error_mapping.get(code)
|
||||
|
||||
|
||||
class NameserverErrorCodes(IntEnum):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue