⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jsqlruntimeexception.java

📁 这个是perst-269.zip下面的SOURCECODE,和大家分享了。
💻 JAVA
字号:
//-< JSQLRuntimeException.java >-------------------------------------*--------*
// JSQL                       Version 1.04       (c) 1999  GARRET    *     ?  *
// (Java SQL)                                                        *   /\|  *
//                                                                   *  /  \  *
//                          Created:      9-Dec-2002  K.A. Knizhnik  * / [] \ *
//                          Last update:  9-Dec-2002  K.A. Knizhnik  * GARRET *
//-------------------------------------------------------------------*--------*
// Exception thown by JSQL at runtime
//-------------------------------------------------------------------*--------*

package org.garret.perst;

/**
 * Exception thown by JSQL at runtime which should be ignored and boolean expression caused this
 * exption should be treated as false
 */
public class JSQLRuntimeException extends RuntimeException { 
    /**
     * Constructor of exception
     * @param target class of the target object in which field was not found
     * @param fieldName name of the locate field
     */
    public JSQLRuntimeException(String message, Class target, String fieldName) { 
        super(message);
        this.target  = target;
        this.fieldName = fieldName;
    }

    /**
     * Get class in which lookup was performed
     */
    public Class getTarget() { 
        return target;
    }

    /**
     * Get name of the field
     */
    public String getFieldName() { 
        return fieldName;
    }

    String fieldName;
    Class  target;
}



⌨️ 快捷键说明

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