Handle a *defect* found on *obj*. When the email package calls this
method, *defect* will always be a subclass of
- :class:`~email.errors.Defect`.
+ :class:`~email.errors.MessageDefect`.
The default implementation checks the :attr:`raise_on_defect` flag. If
it is ``True``, *defect* is raised as an exception. If it is ``False``
.. method:: register_defect(obj, defect)
Register a *defect* on *obj*. In the email package, *defect* will always
- be a subclass of :class:`~email.errors.Defect`.
+ be a subclass of :class:`~email.errors.MessageDefect`.
The default implementation calls the ``append`` method of the ``defects``
attribute of *obj*. When the email package calls :attr:`handle_defect`,
Doc/library/email.compat32-message.rst
Doc/library/email.errors.rst
Doc/library/email.parser.rst
-Doc/library/email.policy.rst
Doc/library/exceptions.rst
Doc/library/functools.rst
Doc/library/getopt.rst