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 - corresponds to AbstractCommand.getExecutionException()
often, but not always an instance of FeignException.Copyright © 2012–2018 OpenFeign. All rights reserved.