1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
|
:mod:`VirtualMailManager.errors` --- Exception classes
======================================================
.. module:: VirtualMailManager.errors
:synopsis: Exception classes
.. moduleauthor:: Pascal Volk <neverseen@users.sourceforge.net>
.. toctree::
:maxdepth: 2
Exceptions, used by VirtualMailManager's classes.
Exceptions
----------
.. exception:: VMMError(msg, code)
Bases: :exc:`exceptions.Exception`
:param msg: the error message
:type msg: :obj:`basestring`
:param code: the error code (one of :mod:`VirtualMailManager.constants.ERROR`)
:type code: :obj:`int`
Base class for all other Exceptions in the VirtualMailManager package.
The *msg* and *code* are accessible via the both attributes:
.. attribute:: msg
The error message of the exception.
.. attribute:: code
The numerical error code of the exception.
.. exception:: ConfigError(msg, code)
Bases: :exc:`VirtualMailManager.errors.VMMError`
Exception class for configuration (:mod:`VirtualMailManager.Config`)
exceptions.
.. exception:: PermissionError(msg, code)
Bases: :exc:`VirtualMailManager.errors.VMMError`
Exception class for file permission exceptions.
.. exception:: NotRootError(msg, code)
Bases: :exc:`VirtualMailManager.errors.VMMError`
Exception class for non-root exceptions.
.. exception:: DomainError(msg, code)
Bases: :exc:`VirtualMailManager.errors.VMMError`
Exception class for Domain (:mod:`VirtualMailManager.Domain`) exceptions.
.. exception:: AliasDomainError(msg, code)
Bases: :exc:`VirtualMailManager.errors.VMMError`
Exception class for AliasDomain (:mod:`VirtualMailManager.AliasDomain`)
exceptions.
.. exception:: AccountError(msg, code)
Bases: :exc:`VirtualMailManager.errors.VMMError`
Exception class for Account (:mod:`VirtualMailManager.Account`) exceptions.
.. exception:: AliasError(msg, code)
Bases: :exc:`VirtualMailManager.errors.VMMError`
Exception class for Alias (:mod:`VirtualMailManager.Alias`) exceptions.
.. exception:: EmailAddressError(msg, code)
Bases: :exc:`VirtualMailManager.errors.VMMError`
Exception class for EmailAddress (:mod:`VirtualMailManager.EmailAddress`)
exceptions.
.. exception:: MailLocationError(msg, code)
Bases: :exc:`VirtualMailManager.errors.VMMError`
Exception class for MailLocation (:mod:`VirtualMailManager.MailLocation`)
exceptions.
.. exception:: RelocatedError(msg, code)
Bases: :exc:`VirtualMailManager.errors.VMMError`
Exception class for Relocated (:mod:`VirtualMailManager.Relocated`)
exceptions.
.. exception:: TransportError(msg, code)
Bases: :exc:`VirtualMailManager.errors.VMMError`
Exception class for Transport (:mod:`VirtualMailManager.Transport`)
exceptions.
|