17 lines
455 B
Java
17 lines
455 B
Java
package ru.soune.no_copy.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;
|
||
|
|
}
|
||
|
|
}
|