All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pro.chenggang.plugin.springcloud.gateway.response.strategy.ExceptionHandlerStrategy Maven / Gradle / Ivy

There is a newer version: 2.1.SR2.2.RELEASE
Show newest version
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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy