package com.kidgrow.common.exception;
import javax.validation.ConstraintViolation;
import java.util.Set;
/**
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020
*
* @Description: 参数校验异常类
* @Project:
* @CreateDate: Created in 2020/2/3 17:08
* @Author: liuke
*/
public class BeanValidateException extends RuntimeException {
private static final long serialVersionUID = -8810832233683666618L;
/**
* 具体异常信息
*/
private Set> errors;
public BeanValidateException(String message) {
super(message);
this.errors = null;
}
public BeanValidateException(Set> errors) {
this.errors = errors;
}
public BeanValidateException(String message, Set> errors) {
super(message);
this.errors = errors;
}
public BeanValidateException(String message, Throwable cause, Set> errors) {
super(message, cause);
this.errors = errors;
}
public BeanValidateException(Throwable cause, Set> errors) {
super(cause);
this.errors = errors;
}
public BeanValidateException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Set> errors) {
super(message, cause, enableSuppression, writableStackTrace);
this.errors = errors;
}
public Set> getErrors() {
return errors;
}
public void setErrors(Set> errors) {
this.errors = errors;
}
}