UncheckedIOException

public class UncheckedIOException extends RuntimeException

Wraps an IOException with an unchecked exception.

Public Constructor Summary

UncheckedIOException(String message, IOException cause)
Constructs an instance of this class.
UncheckedIOException(IOException cause)
Constructs an instance of this class.

Public Method Summary

IOException
getCause()
Returns the cause of this exception.

Inherited Method Summary

Public Constructors

public UncheckedIOException (String message, IOException cause)

Constructs an instance of this class.

Parameters
message the detail message, can be null
cause the IOException
Throws
NullPointerException if the cause is null

public UncheckedIOException (IOException cause)

Constructs an instance of this class.

Parameters
cause the IOException
Throws
NullPointerException if the cause is null

Public Methods

public IOException getCause ()

Returns the cause of this exception.

Returns
  • the IOException which is the cause of this exception.