This is the documentation for the latest development branch of MicroPython and may refer to features that are not available in released versions.
If you are looking for the documentation for a specific release, use the drop-down menu on the left and select the desired version.
errno
â system error codes¶
This module implements a subset of the corresponding CPython module, as described below. For more information, refer to the original CPython documentation: errno
.
This module provides access to symbolic error codes for OSError
exception. A particular inventory of codes depends on MicroPython port.
Error codes, based on ANSI C/POSIX standard. All error codes start with âEâ. As mentioned above, inventory of the codes depends on MicroPython port. Errors are usually accessible as exc.errno
where exc
is an instance of OSError
. Usage example:
try: os.mkdir("my_dir") except OSError as exc: if exc.errno == errno.EEXIST: print("Directory already exists")
Dictionary mapping numeric error codes to strings with symbolic error code (see above):
>>> print(errno.errorcode[errno.EEXIST]) EEXIST
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4