final class UncheckedIOExceptions extends Object
IOException rethrow as UncheckedIOException.| Modifier and Type | Method and Description |
|---|---|
static UncheckedIOException |
create(Object message)
Constructs a new UncheckedIOException for the given detail message.
|
static UncheckedIOException |
wrap(IOException e,
Object message)
Constructs a new UncheckedIOException for the given detail message.
|
public static UncheckedIOException create(Object message)
This method exists because there is no String constructor in UncheckedIOException.
message - the detail message.UncheckedIOException.public static UncheckedIOException wrap(IOException e, Object message)
This method exists because there is no String constructor in UncheckedIOException.
e - cause the IOException.message - the detail message.UncheckedIOException.