ResultException.java 546 Bytes
package com.sincere.student.utils;

public class ResultException extends Exception {

    private int code ;
    private String message ;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ResultException(int code, String message) {
        this.code = code;
        this.message = message;
    }
}