fix: Add exceptions classes for Newsletter
This commit is contained in:
parent
a5010af92a
commit
d5739cd43b
1 changed files with 13 additions and 0 deletions
13
frappe/email/doctype/newsletter/exceptions.py
Normal file
13
frappe/email/doctype/newsletter/exceptions.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# MIT License. See LICENSE
|
||||
|
||||
from frappe.exceptions import ValidationError
|
||||
|
||||
class NewsletterAlreadySentError(ValidationError):
|
||||
pass
|
||||
|
||||
class NoRecipientFoundError(ValidationError):
|
||||
pass
|
||||
|
||||
class NewsletterNotSavedError(ValidationError):
|
||||
pass
|
||||
Loading…
Add table
Reference in a new issue