Package org.apache.commons.io
Class UncheckedIOExceptions
java.lang.Object
org.apache.commons.io.UncheckedIOExceptions
Helps use lambdas that throw
IOException
rethrow as UncheckedIOException
.- Since:
- 2.12.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UncheckedIOException
Creates a new UncheckedIOException for the given detail message.static UncheckedIOException
wrap
(IOException e, Object message) Creates a new UncheckedIOException for the given detail message.
-
Constructor Details
-
UncheckedIOExceptions
private UncheckedIOExceptions()
-
-
Method Details
-
create
Creates a new UncheckedIOException for the given detail message.This method exists because there is no String constructor in
UncheckedIOException
.- Parameters:
message
- the detail message.- Returns:
- a new
UncheckedIOException
.
-
wrap
Creates a new UncheckedIOException for the given detail message.This method exists because there is no String constructor in
UncheckedIOException
.- Parameters:
e
- cause theIOException
.message
- the detail message.- Returns:
- a new
UncheckedIOException
.
-