exceptionconstants.java

来自「《JSP网站开发典型模块与实例精讲》一书光盘源码」· Java 代码 · 共 28 行

JAVA
28
字号
package org.appfuse.util.exception;

public class ExceptionConstants {

    /** Not an Exception */
    public static final int SUCCESS = 0;

    // System wide error section
    /** General Application System Error: 1-100 */
    public static final int SYS_GENERAL_ERR = 1;


    // DB Error section: 1001 - 1999.
    /** Common DB Error */
    public static final int DB_COMMON_ERR = 1001;

    /** Connection Error */
    public static final int DB_CONN_ERR = 1002;

    // Business Exception section: 2000 - 2999.
    public static final int NAME_REQUIRED = 2001;

    public static final int PASSWD_REQUIRED = 2003;

    public static final int NAMEORPASSWDERROR = 2002;

}

⌨️ 快捷键说明

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