ddd
来源:互联网 发布:学习编程先学什么 编辑:程序博客网 时间:2024/05/01 16:21
package org.exception;
/**
* 订单管理系统的基础错误
*
* @author rodney
*
*/
public class OrderBaseException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = -2660698259967334093L;
private String errorCode;
private String errorMessage;
public OrderBaseException() {
super();
}
/**
*
* @param msg
* @param cause
*/
public OrderBaseException(String msg, Throwable cause) {
super(msg, cause);
}
/**
*
* @param msg
*/
public OrderBaseException(String msg) {
super(msg);
}
/**
*
* @param cause
*/
public OrderBaseException(Throwable cause) {
super(cause);
}
/**
* 封装错误信息和错误代码
*
* @param errorCode
* @param msg
*/
public OrderBaseException(String errorCode, String msg) {
super();
this.errorMessage = msg;
this.errorCode = errorCode;
}
/**
* 出现异常时,除了封装错误代码和错误信息外,还封装了堆栈信息
*
* @param errorCode
* @param msg
* @param cause
*/
public OrderBaseException(String errorCode, String msg, Throwable cause) {
super(cause);
this.errorMessage = msg;
this.errorCode = errorCode;
}
/**
* @return 错误代码
*/
public String getErrorCode() {
return errorCode;
}
/**
* @param errorCode
* 设置错误代码
*/
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
/**
* @return 自定义的错误信息
*/
public String getErrorMessage() {
return errorMessage;
}
/**
* @param errorMessage
* 设置自定义的错误信息
*/
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
}
/**
* 订单管理系统的基础错误
*
* @author rodney
*
*/
public class OrderBaseException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = -2660698259967334093L;
private String errorCode;
private String errorMessage;
public OrderBaseException() {
super();
}
/**
*
* @param msg
* @param cause
*/
public OrderBaseException(String msg, Throwable cause) {
super(msg, cause);
}
/**
*
* @param msg
*/
public OrderBaseException(String msg) {
super(msg);
}
/**
*
* @param cause
*/
public OrderBaseException(Throwable cause) {
super(cause);
}
/**
* 封装错误信息和错误代码
*
* @param errorCode
* @param msg
*/
public OrderBaseException(String errorCode, String msg) {
super();
this.errorMessage = msg;
this.errorCode = errorCode;
}
/**
* 出现异常时,除了封装错误代码和错误信息外,还封装了堆栈信息
*
* @param errorCode
* @param msg
* @param cause
*/
public OrderBaseException(String errorCode, String msg, Throwable cause) {
super(cause);
this.errorMessage = msg;
this.errorCode = errorCode;
}
/**
* @return 错误代码
*/
public String getErrorCode() {
return errorCode;
}
/**
* @param errorCode
* 设置错误代码
*/
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
/**
* @return 自定义的错误信息
*/
public String getErrorMessage() {
return errorMessage;
}
/**
* @param errorMessage
* 设置自定义的错误信息
*/
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
}
- ddd
- ddd
- ddd
- ddd
- ddd
- ddd
- ddd
- ddd
- ddd
- ddd
- ddd
- ddd
- ddd
- ddd
- ddd
- ddd
- ddd
- ddd
- VC中定时器的使用(转)
- 利用GDI+函数构造图形报表
- 走出围城—程序员职业生涯规划路线图
- 发现CSDN交互很不错
- 尤斯顿还是休斯顿
- ddd
- 炒股心法
- SQL Server安装问题程序被挂起的错误----解决办法
- SAP IDES中 账册表和国家科目表的区别
- 深入学习GridBagLayout
- 用批处理文件删除n天前的文件&&用批处理实现的保留最近的n个文件 最简单方法
- [经济法]第十四章 财政与税收法律制度
- 谈网络营销的四大发展趋势
- Apache James邮件服务器介绍及配置发送外网邮件