IOException

The checked exception Java uses for failed input or output, such as an unreadable file or a dropped network connection.

In more detail

Because it is checked, any method that may throw it must declare it, so its callers must deal with it. The course catches one at the storage layer and translates it into a domain exception, keeping the original as the cause.

Example

catch (java.io.IOException ex) { throw new StorageFailure(ex); }

Related terms

Taught in

References

Certification courses