mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-02 16:02:15 +02:00
Make class function for GenericError mapping
This commit is contained in:
parent
c3a23c23fa
commit
578f5bac1a
2 changed files with 5 additions and 1 deletions
|
@ -60,6 +60,10 @@ contact help@get.gov.
|
|||
def __str__(self):
|
||||
return f"{self.message}"
|
||||
|
||||
@classmethod
|
||||
def get_error_mapping(self, code=None):
|
||||
return self._error_mapping.get(code)
|
||||
|
||||
|
||||
class NameserverErrorCodes(IntEnum):
|
||||
"""Used in the NameserverError class for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue