java自定义异常

package com.suixingpay.dim.producersdk.exception;

public class ParamErrorExcaption extends Exception{

    private int value;

    public ParamErrorExcaption() {
        super();
    }

    public ParamErrorExcaption(String message, int value) {
        super(message);
        this.value = value;
    }


    public ParamErrorExcaption(String message) {
        super(message);
    }

    public int getValue() {
        return value;
    }
}

 

posted on 2019-06-05 14:35  kinglead  阅读(157)  评论(0编辑  收藏  举报

导航