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

com.shixinke.utils.web.handler.BlockHandler Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy