Java 17 / Spring 6 / Spring Boot 3 Upgrade
[policy/api.git] / main / src / main / java / org / onap / policy / api / main / exception / PolicyApiRuntimeException.java
index 19bf5e1..d4140d4 100644 (file)
@@ -1,7 +1,8 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved.
- *  Modifications Copyright (C) 2022 Bell Canada. All rights reserved.
+ * Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved.
+ * Modifications Copyright (C) 2022 Bell Canada. All rights reserved.
+ * Modifications Copyright (C) 2023 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -21,6 +22,7 @@
 
 package org.onap.policy.api.main.exception;
 
+import java.io.Serial;
 import java.util.UUID;
 import lombok.Getter;
 import org.onap.policy.models.errors.concepts.ErrorResponse;
@@ -28,13 +30,13 @@ import org.onap.policy.models.errors.concepts.ErrorResponse;
 /**
  * This runtime exception will be called if a runtime error occurs when using policy api.
  */
+@Getter
 public class PolicyApiRuntimeException extends RuntimeException {
 
+    @Serial
     private static final long serialVersionUID = -8507246953751956974L;
 
-    @Getter
     private final UUID requestId;
-    @Getter
     private final ErrorResponse errorResponse;
 
     /**