All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.lingkang.finalvalidated.error.ValidatedException Maven / Gradle / Ivy

Go to download

final-validator 是一个JavaBean元数据校验模型和方法验证,能够自定义注解来扩展校验范围,符合国内开发习惯的参数校验java库

The newest version!
package top.lingkang.finalvalidated.error;

/**
 * @author lingkang
 * Created by 2024/1/26
 * 框架校验异常
 */
public class ValidatedException extends RuntimeException{
    private String objectName;
    private String filedName;

    public ValidatedException(String message, String objectName, String filedName) {
        super(message);
        this.objectName = objectName;
        this.filedName = filedName;
    }

    public String getObjectName() {
        return objectName;
    }

    public void setObjectName(String objectName) {
        this.objectName = objectName;
    }

    public String getFiledName() {
        return filedName;
    }

    public void setFiledName(String filedName) {
        this.filedName = filedName;
    }

    public ValidatedException(String message) {
        super(message);
    }

    public ValidatedException(Throwable cause) {
        super(cause);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy