summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java b/aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java
index 627a2f8c..1e61c659 100644
--- a/aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java
+++ b/aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java
@@ -117,11 +117,10 @@ public class LoggingContext {
public static void requestId(String requestId) throws AAIException {
- if(requestId == null){
- throw new AAIException("AAI_4010");
- }
-
try {
+ if(requestId == null){
+ throw new IllegalArgumentException();
+ }
if (requestId.contains(":")) {
String[] uuidParts = requestId.split(":");
requestId = uuidParts[0];