first commit

This commit is contained in:
2025-07-28 13:56:49 +05:30
commit e9eb805edb
3438 changed files with 520990 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package wenrgise.common.exception;
import java.io.Serializable;
public class BaseException extends Exception implements Serializable {
private String sKey;
public BaseException() {}
public BaseException(String sKey) {
this.sKey = sKey;
}
public String getKey() {
return this.sKey;
}
public void setKey(String sMessageKey) {
this.sKey = sMessageKey;
}
}

View File

@@ -0,0 +1,62 @@
package wenrgise.common.exception;
import java.io.Serializable;
import java.util.ArrayList;
public class EnrgiseApplicationException extends BaseException implements Serializable {
private ArrayList oListExceptions;
private ArrayList oArguments;
private String errorType = null;
public EnrgiseApplicationException() {}
public EnrgiseApplicationException(String sMsgKey) {
super(sMsgKey);
this.errorType = "E";
}
public EnrgiseApplicationException(String sMsgKey, String errorType) {
super(sMsgKey);
this.errorType = errorType;
}
public EnrgiseApplicationException(String sMsgKey, ArrayList oArguments) {
super(sMsgKey);
this.oArguments = oArguments;
this.errorType = "E";
}
public EnrgiseApplicationException(String sMsgKey, ArrayList oArguments, String sErrorType) {
super(sMsgKey);
this.oArguments = oArguments;
this.errorType = sErrorType;
}
public ArrayList getList() {
return this.oListExceptions;
}
public void setList(ArrayList oListExceptions) {
this.oListExceptions = oListExceptions;
}
public void addToList(EnrgiseApplicationException oAppExcp) {
if (this.oListExceptions == null)
this.oListExceptions = new ArrayList();
this.oListExceptions.add(oAppExcp);
}
public ArrayList getArguments() {
return this.oArguments;
}
public void setArguments(ArrayList newOArguments) {
this.oArguments = newOArguments;
}
public String getErrorType() {
return this.errorType;
}
}

View File

@@ -0,0 +1,16 @@
package wenrgise.common.exception;
import java.io.Serializable;
import java.util.ArrayList;
public class EnrgiseMessageKeyException extends EnrgiseApplicationException implements Serializable {
public EnrgiseMessageKeyException() {}
public EnrgiseMessageKeyException(String sMsgKey, ArrayList oArguments) {
super(sMsgKey, oArguments);
}
public EnrgiseMessageKeyException(String sMsgKey, ArrayList oArguments, String sErrorType) {
super(sMsgKey, oArguments, sErrorType);
}
}

View File

@@ -0,0 +1,18 @@
package wenrgise.common.exception;
import java.io.Serializable;
public class EnrgiseSystemException extends BaseException implements Serializable {
private Exception oRootCause;
public EnrgiseSystemException() {}
public EnrgiseSystemException(Exception oExcp) {
this.oRootCause = oExcp;
}
public EnrgiseSystemException(String sKey, Exception oExcp) {
super(sKey);
this.oRootCause = oExcp;
}
}