ApiException 用于在catch中throw 异常,可以添加异常信息, throw new ApiException("线下绑卡异常!");
public class ApiException extends RuntimeException{ public ApiException(){ super(); } public ApiException(String message){ super(message); } public ApiException(String message,Throwable exception){ super(message,exception); } public ApiException(Throwable exception){ super(exception); } }