validationexception.java

来自「动态代理实例源代码」· Java 代码 · 共 28 行

JAVA
28
字号
package com.lakeviewtech;

/**
 * Base exception type for signaling a failed validation attempt.
 */
public class ValidationException extends Exception {

    /**
     * The id for this exception.
     */
    private String id = null;

    /**
     * Create a ValidationException with the given id and message.
     */
    public ValidationException(String id, String message) {
        super(message);
        this.id = id;
    }

    /**
     * Get the id for this exception.
     */
    public String getId() {
        return id;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?