package ru.soune.nocopy.exception;

import lombok.Getter;
import org.springframework.validation.BindingResult;

@Getter
public class ValidationException extends RuntimeException {
    private final BindingResult bindingResult;
    private final Integer msgId;

    public ValidationException(BindingResult bindingResult, Integer msgId) {
        super("Validation failed");
        this.bindingResult = bindingResult;
        this.msgId = msgId;
    }
}
