public IIOException (String message, Throwable cause)

Constructs an IIOException with a given message String and a Throwable that was its underlying cause.

Parameters:
message    the error message.
cause    the Throwable ( Error or Exception) that caused this exception to occur.

See also:
getCause, getMessage