com.shixinke.utils.web.handler.BlockHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web-utils Show documentation
Show all versions of web-utils Show documentation
Toolbox commonly used in web development
package com.shixinke.utils.web.handler;
import com.alibaba.csp.sentinel.slots.block.BlockException;
/**
* @author shixinke
* crated 19-4-9 下午3:46
* @version 1.0
*/
public interface BlockHandler {
/**
* handle the flow exception
* @param ex the object of exception
* @return T
* @throws BlockException block exception
*/
public default T handle(BlockException ex) throws BlockException {
throw ex;
}
}