package com.om.exception;

import com.om.utils.ResultCode;
import lombok.Data;

/**
 * 错误请求异常类
 *需要继承运行时异常RuntimeException
 */
@Data
public class BadReqException extends RuntimeException {
    private final Integer code = ResultCode.SERVICE_HANDLE_ERROR;
    private String message = "错误请求";

    public BadReqException(String message) {
        this.message = message;
    }


}
