Juergen Edelbluth
08943cd8d5
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.
28 lines
470 B
Python
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
|
|
"""
|