UncheckedIOException (Java SE 17 & JDK 17)
- All Implemented Interfaces:
Serializable
Wraps an IOException with an unchecked exception.
- Since:
- 1.8
- See Also:
-
Constructor Summary
Constructors
Constructs an instance of this class.
Constructs an instance of this class.
-
Method Summary
getCause()Returns the cause of this exception.
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UncheckedIOException
Constructs an instance of this class.
- Parameters:
message- the detail message, can be nullcause- theIOException- Throws:
NullPointerException- if the cause isnull
-
UncheckedIOException
public UncheckedIOException
(IOException cause) Constructs an instance of this class.
- Parameters:
cause- theIOException- Throws:
NullPointerException- if the cause isnull
-
-
Method Details