* O-RAN-SC
* %%
* Copyright (C) 2019 AT&T Intellectual Property
+ * Modifications Copyright (C) 2020 Nordix Foundation
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
+ @SuppressWarnings("squid:S1075")
public static final String ERROR_PATH = "/error";
private final ErrorAttributes errorAttributes;
if (t != null)
logger.warn("handleError", t);
Map<String, Object> attributes = errorAttributes.getErrorAttributes(servletWebRequest, true);
- attributes.forEach((attribute, value) -> {
- logger.warn("handleError: {} -> {}", attribute, value);
- });
+ attributes.forEach((attribute, value) -> logger.warn("handleError: {} -> {}", attribute, value));
// Return the name of the page INCLUDING suffix, which I guess is a "view" name.
// Just "error" is not enough, but don't seem to need a ModelAndView object.
return "error.html";