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() {
}
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);
}
}