GeezerVison is showing docs.oracle.com — IOException (Java SE 11 & JDK 11 )
-
-
Constructor Summary
Constructors
| Constructor |
Description |
IOException() |
Constructs an IOException with null
as its error detail message.
|
IOException(String message) |
Constructs an IOException with the specified detail message.
|
IOException(String message,
Throwable cause) |
Constructs an IOException with the specified detail message
and cause.
|
IOException(Throwable cause) |
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).
|
-
Method Summary
-
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
Constructor Detail
-
IOException
public IOException(Throwable cause)
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.)
- Since:
- 1.6
|