IOException

Constructs an IOException with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of cause).
This constructor is useful for IO exceptions that are little more
than wrappers for other throwables.

Parameters:

cause - The cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is permitted,
and indicates that the cause is nonexistent or unknown.)