?? applicationexception.java
字號(hào):
package com.hziee.phone_book.model;
//異常處理
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;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -