On this page
resource.error
Up: resource | Next: resource.getpagesize
Rel: resource.getpagesize, resource.getrlimit, resource.getrusage, resource.setrlimit
Ref: docs.python.org โ resource.error
Tags: #public #python3 #stdlib #resource
Import
import resource
from resource import error
Signature & Overview
resource.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 resource
assert issubclass(resource.error, OSError)
Gotchas
- Alias for
OSErrorin modern Python.
REPL Inspect
from resource import error
help(error)
Linked from
Related notes
- tuts/python3/stdlib_module/resource/getpagesize Linked here; links to this page; shared tags: #resource, #stdlib
- tuts/python3/stdlib_module/resource/getrlimit Linked here; links to this page; shared tags: #resource, #stdlib
- tuts/python3/stdlib_module/resource/getrusage Linked here; links to this page; shared tags: #resource, #stdlib
- tuts/python3/stdlib_module/resource/setrlimit Linked here; links to this page; shared tags: #resource, #stdlib
- tuts/python3/stdlib_module/resource Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/resource/struct_rusage links to this page; shared tags: #resource, #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib