summaryrefslogtreecommitdiffstats
path: root/cps-rest/src
diff options
context:
space:
mode:
Diffstat (limited to 'cps-rest/src')
-rwxr-xr-x[-rw-r--r--]cps-rest/src/main/java/org/onap/cps/rest/exceptions/CpsRestExceptionHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/cps-rest/src/main/java/org/onap/cps/rest/exceptions/CpsRestExceptionHandler.java b/cps-rest/src/main/java/org/onap/cps/rest/exceptions/CpsRestExceptionHandler.java
index 75a45320f8..7719417c13 100644..100755
--- a/cps-rest/src/main/java/org/onap/cps/rest/exceptions/CpsRestExceptionHandler.java
+++ b/cps-rest/src/main/java/org/onap/cps/rest/exceptions/CpsRestExceptionHandler.java
@@ -42,7 +42,7 @@ import org.springframework.web.bind.annotation.RestControllerAdvice;
QueryRestController.class})
public class CpsRestExceptionHandler {
- private static final String checkLogsForDetails = "Check logs for details.";
+ private static final String CHECK_LOGS_FOR_DETAILS = "Check logs for details.";
private CpsRestExceptionHandler() {
}
@@ -88,7 +88,7 @@ public class CpsRestExceptionHandler {
errorMessage.setStatus(status.toString());
errorMessage.setMessage(exception.getMessage());
errorMessage.setDetails(exception instanceof CpsException ? ((CpsException) exception).getDetails() :
- checkLogsForDetails);
+ CHECK_LOGS_FOR_DETAILS);
return new ResponseEntity<>(errorMessage, status);
}
}