package com.ruoyi.web.exception;

import lombok.Getter;

@Getter
public class ErrorMessageException extends RuntimeException {

    private final int code;

    public ErrorMessageException(String message) {
        super(message);
        this.code = 500;
    }

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