summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/music/eelf/logging/format/AppMessages.java45
1 files changed, 32 insertions, 13 deletions
diff --git a/src/main/java/org/onap/music/eelf/logging/format/AppMessages.java b/src/main/java/org/onap/music/eelf/logging/format/AppMessages.java
index 2c7952b2..bef61f25 100644
--- a/src/main/java/org/onap/music/eelf/logging/format/AppMessages.java
+++ b/src/main/java/org/onap/music/eelf/logging/format/AppMessages.java
@@ -88,9 +88,9 @@ public enum AppMessages {
* 1000-1099 Reserved - do not use
*
*/
-
-
-
+
+
+
MISSINGINFO("[ERR100E]", "Missing Information ","Details: NA", "Please check application credentials and/or headers"),
AUTHENTICATIONERROR("[ERR101E]", "Authentication error occured ","Details: NA", "Please verify application credentials"),
@@ -122,16 +122,17 @@ public enum AppMessages {
CACHEERROR("[ERR600E]"," Error initializing the cache",""," Error initializing the cache"),
UNKNOWNERROR("[ERR900E]"," Unexpected error occured",""," Please check logs for details");
-
-
-
- ErrorTypes eType;
- ErrorSeverity alarmSeverity;
- ErrorSeverity errorSeverity;
- String errorCode;
- String errorDescription;
- String details;
- String resolution;
+
+
+
+
+ private ErrorTypes eType;
+ private ErrorSeverity alarmSeverity;
+ private ErrorSeverity errorSeverity;
+ private String errorCode;
+ private String errorDescription;
+ private String details;
+ private String resolution;
AppMessages(String errorCode, String errorDescription, String details,String resolution) {
@@ -157,19 +158,37 @@ public enum AppMessages {
this.details = details;
this.resolution = resolution;
}
+ public ErrorTypes getEType() {
+ return eType;
+ }
+
+ public ErrorSeverity getAlarmSeverity() {
+ return alarmSeverity;
+ }
+ public ErrorSeverity getErrorSeverity() {
+ return errorSeverity;
+ }
+
+ public void setDetails(String details){ this.details=details; }
public String getDetails() {
return this.details;
}
+ public void setResolution(String resolution){ this.resolution=resolution; }
+
public String getResolution() {
return this.resolution;
}
+ public void setErrorCode(String errorCode){ this.errorCode=errorCode; }
+
public String getErrorCode() {
return this.errorCode;
}
+ public void setErrorDescription(String errorDescription){ this.errorDescription=errorDescription; }
+
public String getErrorDescription() {
return this.errorDescription;
}