Package org.apache.commons.io
Class UncheckedIOExceptions
- java.lang.Object
-
- org.apache.commons.io.UncheckedIOExceptions
-
final class UncheckedIOExceptions extends java.lang.ObjectHelps use lambdas that throwIOExceptionrethrow asUncheckedIOException.- Since:
- 2.12.0
-
-
Constructor Summary
Constructors Modifier Constructor Description privateUncheckedIOExceptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.UncheckedIOExceptioncreate(java.lang.Object message)Constructs a new UncheckedIOException for the given detail message.static java.io.UncheckedIOExceptionwrap(java.io.IOException e, java.lang.Object message)Constructs a new UncheckedIOException for the given detail message.
-
-
-
Method Detail
-
create
public static java.io.UncheckedIOException create(java.lang.Object message)
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
public static java.io.UncheckedIOException wrap(java.io.IOException e, java.lang.Object message)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.
-
-