?? applicationexception.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 + -