@SafeVarargs protected final List<Pair<String, String>> withBaseExceptionMessage( Throwable ex, Pair<String, String>... extraLogMessages ) { List<Pair<String, String>> logPairs = new ArrayList<>(); ApiExceptionHandlerUtils.DEFAULT_IMPL.addBaseExceptionMessageToExtraDetailsForLogging(ex, logPairs); if (extraLogMessages != null) { logPairs.addAll(Arrays.asList(extraLogMessages)); } return logPairs; }
utils.addBaseExceptionMessageToExtraDetailsForLogging(ex, extraDetailsForLogging); WebApplicationException webex = (WebApplicationException) ex; Response webExResponse = webex.getResponse(); utils.addBaseExceptionMessageToExtraDetailsForLogging(ex, extraDetailsForLogging); handledErrors = singletonSortedSetOf(projectApiErrors.getMalformedRequestApiError());