public static final class FallbackFactory.Default<T> extends Object implements FallbackFactory<T>
FallbackFactory.Default<T>| Modifier and Type | Method and Description |
|---|---|
T |
create(Throwable cause)
Returns an instance of the fallback appropriate for the given cause.
|
String |
toString() |
public Default(T constant)
public T create(Throwable cause)
FallbackFactorycreate in interface FallbackFactory<T>cause - cause of an exception.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.