Refactored I/O exceptions.