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

📄 applicationexception.java

📁 这是我们学校教的j2me程序开发实例从入门到精通自带关盘的源代码
💻 JAVA
字号:
/*
 * Created on 2004-6-20
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.north.phonebook.model;

/**
 * @author P2800
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class ApplicationException extends Exception
{
    private Exception exception;
    private int code = -1;
    public static final int RECORD_EXIST = 1; 
    public static final int NO_RECORD = 2;
    
    
    public ApplicationException(Exception ex)
    {
        this.exception = ex;
    }
    
    public ApplicationException(int code)
    {
        this.code = code;
    }
    /**
     * @return Returns the code.
     */
    public int getCode()
    {
        return code;
    }
    /**
     * @param code The code to set.
     */
    public void setCode(int code)
    {
        this.code = code;
    }
    /**
     * @return Returns the exception.
     */
    public Exception getException()
    {
        return exception;
    }
    /**
     * @param exception The exception to set.
     */
    public void setException(Exception exception)
    {
        this.exception = exception;
    }
}

⌨️ 快捷键说明

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