Modified Copyright (C) 2018 Samsung Electronics Co., Ltd.
Copyright (C) 2019,2021 AT&T Intellectual Property. All rights reserved.
Modifications Copyright (C) 2020-2023 Bell Canada.
- Modifications Copyright (C) 2022-2024 Nordix Foundation.
+ Modifications Copyright (C) 2022-2025 Nordix Foundation.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
<artifactId>micrometer-registry-prometheus</artifactId>
<scope>runtime</scope>
</dependency>
- <dependency>
- <groupId>io.netty</groupId>
- <artifactId>netty-codec</artifactId>
- <scope>runtime</scope>
- </dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
* ================================================================================\r
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.\r
* Modifications Copyright (C) 2022 Bell Canada. All rights reserved.\r
- * Modifications Copyright (C) 2022-2024 Nordix Foundation.\r
+ * Modifications Copyright (C) 2022-2025 Nordix Foundation.\r
* ================================================================================\r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
\r
@ExceptionHandler(value = {PolicyApiRuntimeException.class})\r
protected ResponseEntity<Object> handleException(PolicyApiRuntimeException ex, WebRequest req) {\r
- LOGGER.warn(ex.getMessage(), ex.getCause());\r
+ LOGGER.warn(ex.getErrorResponse().getErrorMessage(), ex.getCause());\r
final var requestId = req.getHeader(CommonRestController.REQUEST_ID_NAME);\r
final var status = ex.getErrorResponse().getResponseCode().getStatusCode();\r
return CommonRestController.addLoggingHeaders(\r