mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-01 07:26:34 +02:00
error cleanup
This commit is contained in:
parent
7bbee19bfe
commit
5cb6c3f0fb
3 changed files with 0 additions and 22 deletions
|
@ -43,20 +43,6 @@ class AlreadyDomainInvitedError(InvitationError):
|
|||
super().__init__(f"{email} has already been invited to this domain.")
|
||||
|
||||
|
||||
class AlreadyPortfolioMemberError(InvitationError):
|
||||
"""Raised when the user is already a member of the portfolio."""
|
||||
|
||||
def __init__(self, email):
|
||||
super().__init__(f"{email} is already a manager for this portfolio.")
|
||||
|
||||
|
||||
class AlreadyPortfolioInvitedError(InvitationError):
|
||||
"""Raised when the user has already been invited to the portfolio."""
|
||||
|
||||
def __init__(self, email, portfolio):
|
||||
super().__init__(f"{email} has already been invited to {portfolio}.")
|
||||
|
||||
|
||||
class MissingEmailError(InvitationError):
|
||||
"""Raised when the requestor has no email associated with their account."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue