📄 jactionexception.java
字号:
package jaction.utility;
import jaction.xml.JactionExceptionParser;
import java.io.*;
import org.w3c.dom.*;
import javax.xml.parsers.*;
/**
* Jaction异常处理工具类<br>
* @author yanger
* @version $Revision: 1.4.2.4 $ $Date: 2003-4-24 11:31 $
*/
public class JactionException extends Exception implements Serializable {
/**
* 构造函数
*/
public JactionException(){
}
/**
* 构造函数
* @param code 错误的代码
*/
public JactionException(String code){
try{
jactionExceptionParser.init(code);
}catch(Exception e){
FileUtil.log("JactionException :"+e);
}
this.type = jactionExceptionParser.getTypeName();
this.message = jactionExceptionParser.getMessage();
this.declaration = jactionExceptionParser.getDeclaration();
}
//---------------------------------------------------------------------------->变量定义
/**
* xml parser:异常信息解析句柄
*/
JactionExceptionParser jactionExceptionParser = new JactionExceptionParser();
/**
* 异常代码
*/
protected String code;
/**
* 异常类型
*/
protected String type;
/**
* 异常信息
*/
protected String message;
/**
* 异常声明
*/
protected String declaration;
//---------------------------------------------------------------------------->set and get
/**
* 得到异常信息
* @return String 异常信息
*/
public String getMessage(){
return this.message;
}
/**
* 得到异常代码
* @return String 异常信息
*/
public String getCode(){
return this.code;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -