2025-12-10 19:12:54 +07:00
|
|
|
package ru.soune.nocopy.exception;
|
2025-12-10 12:17:08 +07:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|