smtp-test-server/smtp_test_server/exceptions.py
Juergen Edelbluth 08943cd8d5
Initial Commit
This commit consolidates the SMTP mock code from some of my testing projects into a re-usable form.

This package will be used later for realizing the upcoming pytest plugin.
2023-11-29 20:33:27 +01:00

28 lines
470 B
Python

"""
Package exceptions
"""
class AlreadyStartedError(RuntimeError):
"""
Exception when the server is already running
"""
class NotStartedError(RuntimeError):
"""
Exception when the server is not started
"""
class NotALocalHostnameOrIPAddressToBindToError(ValueError):
"""
Exception when the hostname is not local
"""
class NotProperlyInitializedError(RuntimeError):
"""
Exception when not properly initialized
"""