package ru.soune.nocopy.exception;

import lombok.Getter;
import ru.soune.nocopy.dto.BaseResponse;

@Getter
public class NotValidFieldException extends RuntimeException {

    private final String message;

    private final BaseResponse baseResponse;

    public NotValidFieldException(String message, BaseResponse baseResponse) {
        super(message);
        this.message = message;
        this.baseResponse = baseResponse;
    }
}
