ApiException

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);
    }
}

 

posted @ 2017-03-23 14:36  话说当初  阅读(2413)  评论(0编辑  收藏  举报