summaryrefslogtreecommitdiffstats
path: root/aai-core/src/main
diff options
context:
space:
mode:
authorJames Forsyth <jf2512@att.com>2019-02-27 21:07:15 +0000
committerGerrit Code Review <gerrit@onap.org>2019-02-27 21:07:15 +0000
commit2cbb5acacc25b8f729e11b8d0de71482a6bec0a6 (patch)
treedb8f5f32538ffaa563f48b842dbc9edf83dabe82 /aai-core/src/main
parentb092bf2443c74d9e1efcddd9f99a7ebff6f3b5b5 (diff)
parentd3f777567f46e72dcad391cb8cfc724d3d8c7588 (diff)
Merge "AAIAuthCore-replace duplicate literal by constant"
Diffstat (limited to 'aai-core/src/main')
-rw-r--r--aai-core/src/main/java/org/onap/aai/auth/AAIAuthCore.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/aai-core/src/main/java/org/onap/aai/auth/AAIAuthCore.java b/aai-core/src/main/java/org/onap/aai/auth/AAIAuthCore.java
index 1572ec72..5097ef41 100644
--- a/aai-core/src/main/java/org/onap/aai/auth/AAIAuthCore.java
+++ b/aai-core/src/main/java/org/onap/aai/auth/AAIAuthCore.java
@@ -53,6 +53,8 @@ public final class AAIAuthCore {
private static final EELFLogger LOGGER = EELFManager.getInstance().getLogger(AAIAuthCore.class);
+ private static final String ERROR_CODE_AAI_4001 = "AAI_4001";
+
private String globalAuthFileName = AAIConstants.AAI_AUTH_CONFIG_FILENAME;
private final Pattern AUTH_POLICY_PATTERN;
@@ -161,11 +163,11 @@ public final class AAIAuthCore {
}
}
} catch (FileNotFoundException e) {
- ErrorLogHelper.logError("AAI_4001", globalAuthFileName + ". Exception: " + e);
+ ErrorLogHelper.logError(ERROR_CODE_AAI_4001, globalAuthFileName + ". Exception: " + e);
} catch (JsonProcessingException e) {
- ErrorLogHelper.logError("AAI_4001", globalAuthFileName + ". Not valid JSON: " + e);
+ ErrorLogHelper.logError(ERROR_CODE_AAI_4001, globalAuthFileName + ". Not valid JSON: " + e);
} catch (Exception e) {
- ErrorLogHelper.logError("AAI_4001", globalAuthFileName + ". Exception caught: " + e);
+ ErrorLogHelper.logError(ERROR_CODE_AAI_4001, globalAuthFileName + ". Exception caught: " + e);
}
}