X
- Type of inputpublic interface Fallback<X> extends Func<Throwable,X>
Throwable
.
There is no thread-safety guarantee.
Modifier and Type | Interface and Description |
---|---|
static class |
Fallback.From<T>
Fallback from exception.
|
static class |
Fallback.None<X>
No fallback.
|
Modifier and Type | Method and Description |
---|---|
int |
support(Throwable exception)
Calculate level of support of the given exception type.
|
int support(Throwable exception)
exception
- ExceptionInteger.MIN_VALUE
otherwiseCopyright © 2017–2022 Cactoos. All rights reserved.