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 UncheckedIOExceptionConstructs a new UncheckedIOException for the given detail message.static UncheckedIOExceptionwrap(IOException e, Object message) Constructs a new UncheckedIOException for the given detail message.
-
Constructor Details
-
UncheckedIOExceptions
private UncheckedIOExceptions()
-
-
Method Details
-
create
Constructs 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
Constructs 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.
-