Skip to content

Commit

Permalink
Add UnsupportedEmailError
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Mar 6, 2021
1 parent b00b4d3 commit 2211448
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/pyapi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ Exceptions
:show-inheritance:
.. autoexception:: outgoing.errors.NetrcLookupError
:show-inheritance:
.. autoexception:: outgoing.errors.UnsupportedEmailError
:show-inheritance:
9 changes: 9 additions & 0 deletions src/outgoing/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,12 @@ class NetrcLookupError(Error):
"""

pass


class UnsupportedEmailError(Error):
"""
Raised by sender objects when asked to send an e-mail that uses features or
constructs that the sending method does not support
"""

pass

0 comments on commit 2211448

Please sign in to comment.