![]() |
VOOZH | about |
EnvironmentError is the base class for errors that come from outside of Python (the operating system, file system, etc.). It is the parent class for IOError and OSError exceptions.
Any example of an IOError or OSError should also be an example of Environment Error.
Example 1 :
[Errno 2] No such file or directory: 'GeeksforGeeks.txt' <class 'FileNotFoundError'>
Example 2 :
0 [Errno 25] Inappropriate ioctl for device <class 'OSError'>
Example 3 :
[Errno 2] No such file or directory: 'GEEKS' <class 'FileNotFoundError'>