pro.chenggang.plugin.springcloud.gateway.response.strategy.ExceptionHandlerStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-cloud-gateway-plugin Show documentation
Show all versions of spring-cloud-gateway-plugin Show documentation
Spring Cloud Gateway Plugin Project
package pro.chenggang.plugin.springcloud.gateway.response.strategy;
import pro.chenggang.plugin.springcloud.gateway.response.ExceptionHandlerResult;
/**
* ExceptionHandlerStrategy
* @author chenggang
* @date 2019/01/29
*/
public interface ExceptionHandlerStrategy {
/**
* get the exception class
* @return Class
*/
Class getHandleClass();
/**
* Handle Exception
* @param throwable
* @return ExceptionHandlerResult
*/
ExceptionHandlerResult handleException(Throwable throwable);
}