Code cleanup

This commit is contained in:
zandercymatics 2023-11-20 10:38:53 -07:00
parent 0ce4a04b4b
commit 04c7bdd3b6
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 8 additions and 20 deletions

View file

@ -60,6 +60,7 @@ contact help@get.gov
class LoadOrganizationErrorCodes(IntEnum):
TRANSITION_DOMAINS_NOT_FOUND = 1
UPDATE_DOMAIN_INFO_FAILED = 2
EMPTY_TRANSITION_DOMAIN_TABLE = 3
class LoadOrganizationError(Exception):
@ -72,6 +73,7 @@ class LoadOrganizationError(Exception):
"Could not find all desired TransitionDomains. " "(Possible data corruption?)"
),
LoadOrganizationErrorCodes.UPDATE_DOMAIN_INFO_FAILED: "Failed to update DomainInformation",
LoadOrganizationErrorCodes.EMPTY_TRANSITION_DOMAIN_TABLE: "No TransitionDomains exist. Cannot update."
}
def __init__(self, *args, code=None, **kwargs):