Raised when an I/O operation (such as a print statement, the built-in open function or a method of a file object) fails
for an I/O-related reason, e.g., file not found
or disk
full
.
This class is derived from EnvironmentError. See the discussion above for more information on exception instance attributes.