/**
* © 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;
}
}