com.github.fashionbrot.validated.exception.ValidatedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mars-validated Show documentation
Show all versions of mars-validated Show documentation
mars-validated 参数验证 https://github.com/fashionbrot/mars-validated
package com.github.fashionbrot.validated.exception;
import lombok.Data;
@Data
public class ValidatedException extends RuntimeException {
private String fieldName;
private String msg;
public ValidatedException(String msg,String fieldName) {
super(msg);
this.msg=msg;
this.fieldName=fieldName;
}
}