In Python, that would be ValueError, or a subclass of it.
For example, trying to .read() a closed file raises “ValueError: I/O operation on closed file”.
In Python, that would be ValueError, or a subclass of it.
For example, trying to .read() a closed file raises “ValueError: I/O operation on closed file”.