ID EN
OS

strerror

Python 3.11

Return the error message corresponding to the error code in code. On platforms where strerror() returns NULL when given an unknown error number, ValueError is raised.

Syntax

PYTHON
os.strerror(code, /)

See Also

ValueError