ExceptionDefinition

/**
 * © 2001 - 2003 eBworx Malaysia Sdn Bhd. All rights reserved.
 * 7th Floor, Menara Merais,
 * No. 1, Jalan 19/3,
 * 46300 Petaling Jaya,
 * Selangor Darul Ehsan,
 * Malaysia.
 *
 * This software is the intellectual property of eBworx. The program
 * may be used only in accordance with the terms of the license agreement you
 * entered into with eBworx.
 */
package com.ebworx.services.common.server.helper;

import java.io.Serializable;

/**
 * Server constants.
 *
 * @author SF KONG
 * @version
 */
public class ExceptionDefinition extends Exception
        implements Serializable {
    /**/
    char severity = ' ';
    String layerCode = "";
    String moduleCode = "";
    String objectCode = "";
    String errorCode = "";

    public ExceptionDefinition() {
    }

    public ExceptionDefinition(String message) {
        super(message);
    }

    public ExceptionDefinition(Throwable cause) {
        super(cause);
    }

    public ExceptionDefinition(String message, Throwable cause) {
        super(message, cause);
    }

    public char getSeverity() {
        return severity;
    }

    public void setSeverity(char severity) {
        this.severity = severity;
    }

    public String getLayerCode() {
        return layerCode;
    }

    public void setLayerCode(String layerCode) {
        this.layerCode = layerCode;
    }

    public String getModuleCode() {
        return moduleCode;
    }

    public void setModuleCode(String moduleCode) {
        this.moduleCode = moduleCode;
    }

    public String getObjectCode() {
        return objectCode;
    }

    public void setObjectCode(String objectCode) {
        this.objectCode = objectCode;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorReference() {
        return severity+layerCode+moduleCode+objectCode+errorCode;
    }
}
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值