Parameterize email recipients (#519)

This commit is contained in:
Kerem Yilmaz
2024-06-26 08:51:30 -07:00
committed by GitHub
parent df71ee0598
commit 0031e6b470
4 changed files with 69 additions and 16 deletions

View File

@@ -64,6 +64,11 @@ class InvalidEmailClientConfiguration(BaseWorkflowException):
super().__init__(f"Email client configuration is invalid. These parameters are missing or invalid: {problems}")
class NoValidEmailRecipient(BaseWorkflowException):
def __init__(self, recipients: list[str]) -> None:
super().__init__(f"No valid email recipient found. Recipients: {recipients}")
class ContextParameterSourceNotDefined(BaseWorkflowHTTPException):
def __init__(self, context_parameter_key: str, source_key: str) -> None:
super().__init__(