Add error code for outside org members being added

This commit is contained in:
Erin Song 2024-09-26 14:45:10 -07:00
parent 8b61eb1275
commit b0fe698af2
No known key found for this signature in database
2 changed files with 41 additions and 33 deletions

View file

@ -23,6 +23,14 @@ class InvalidDomainError(ValueError):
pass
class OutsideOrgMemberError(ValueError):
"""
Error raised when an org member tries adding a user from a different .gov org.
To be deleted when users can be members of multiple orgs.
"""
pass
class ActionNotAllowed(Exception):
"""User accessed an action that is not
allowed by the current state"""