public class DefaultBlockFallbackProvider extends Object implements ZuulBlockFallbackProvider
BlockException, * meant for all routes.| Constructor and Description |
|---|
DefaultBlockFallbackProvider() |
| Modifier and Type | Method and Description |
|---|---|
BlockResponse |
fallbackResponse(String route,
Throwable cause)
Provides a fallback response based on the cause of the failed execution.
|
String |
getRoute()
The route this fallback will be used for.
|
public String getRoute()
ZuulBlockFallbackProvidergetRoute in interface ZuulBlockFallbackProviderpublic BlockResponse fallbackResponse(String route, Throwable cause)
ZuulBlockFallbackProviderfallbackResponse in interface ZuulBlockFallbackProviderroute - The route the fallback is forcause - cause of the main method failure, may be nullCopyright © 2021 Alibaba Group. All rights reserved.