aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2018-11-28 23:33:40 +0530
committerezhil <ezhrajam@in.ibm.com>2018-11-28 23:33:54 +0530
commit9a16585168476dad2067695e73a1701a3cbbb804 (patch)
tree80d6659cc2007e883bb585e158161d5435f975ee /src/main/java
parent18b941b5bae216c8edf17fce355569911266dfdc (diff)
Fixed sonar issue in AppMessages.java
Added getter and setter methods Issue-ID: MUSIC-208 Change-Id: I87ba212f79d70c6d105467f31b410fbed95891d5 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'src/main/java')
-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;
}