package com.sino.mci.exception;

public class BusinessException extends RuntimeException {

    private final int code;

    public BusinessException(String message) {
        this(-1, message);
    }

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

    public int getCode() {
        return code;
    }
}
