On this page
mailbox.FormatError
Prev: mailbox.ExternalClashError | Up: mailbox | Next: mailbox.Mailbox
Rel: mailbox.Babyl, mailbox.BabylMessage, mailbox.Error, mailbox.ExternalClashError
Ref: docs.python.org โ mailbox.FormatError
Tags: #public #python3 #stdlib #mailbox
Import
import mailbox
from mailbox import FormatError
Signature & Overview
mailbox.FormatError(...)
A file appears to have an invalid format.
Methods & Attributes
FormatError.add_note(self, note, /)โ Add a note to the exceptionFormatError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import mailbox
assert issubclass(mailbox.FormatError, mailbox.Error)
Gotchas
- Raised when a mailbox file has invalid structure or delimiters.
REPL Inspect
from mailbox import FormatError
help(FormatError)
Linked from
Related notes
- tuts/python3/stdlib_module/mailbox/Babyl Linked here; links to this page; shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/BabylMessage Linked here; links to this page; shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/Error Linked here; links to this page; shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/ExternalClashError Linked here; links to this page; shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/Mailbox Linked here; links to this page; shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/mailbox/Maildir shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/MaildirMessage shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/mbox shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/mboxMessage shared tags: #mailbox, #stdlib