GeezerVison is showing docs.oracle.com — UncheckedIOException (Java SE 17 & JDK 17)
Class UncheckedIOException
- All Implemented Interfaces:
Serializable
- Since:
- 1.8
- See Also:
-
-
Constructor Summary
Constructors
Constructor
Description
Constructs an instance of this class.
Constructs an instance of this class.
-
Method Summary
Modifier and Type
Method
Description
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 null
cause - the IOException
- Throws:
NullPointerException - if the cause is null
-
UncheckedIOException
Constructs an instance of this class.
- Parameters:
cause - the IOException
- Throws:
NullPointerException - if the cause is null
-
Method Details
-
getCause
Returns the cause of this exception.
- Overrides:
getCause in class Throwable
- Returns:
- the
IOException which is the cause of this exception.