On this page
posix.error
Prev: posix.dup2 | Up: posix | Next: posix.execv
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org โ posix.error
Tags: #public #python3 #stdlib #posix
Import
import posix
from posix import error
Signature & Overview
posix.error(...)
Base class for I/O related errors.
Methods & Attributes
error.add_note(self, note, /)โ Add a note to the exceptionerror.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import os
assert os.error is OSError
Gotchas
- Catch built-in
OSErrordirectly.
REPL Inspect
from posix import error
help(error)
Linked from
Related notes
- tuts/python3/stdlib_module/posix/dup2 Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/execv Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posix/abort Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/access Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chdir Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chflags Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chmod shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chown shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chroot shared tags: #posix, #stdlib