X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=main%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fapi%2Fmain%2Fexception%2FPolicyApiRuntimeException.java;h=d4140d4746947fe3778c1e4463f0e077fd4fcc73;hb=6438ef61e253f5071a5539c0c8de8890260d4f58;hp=19bf5e12d9ca8b5e5a24c65ad9ff58ee5a49b01f;hpb=22d211f6df78363d61192057d7cd03534ff7d1c9;p=policy%2Fapi.git diff --git a/main/src/main/java/org/onap/policy/api/main/exception/PolicyApiRuntimeException.java b/main/src/main/java/org/onap/policy/api/main/exception/PolicyApiRuntimeException.java index 19bf5e12..d4140d47 100644 --- a/main/src/main/java/org/onap/policy/api/main/exception/PolicyApiRuntimeException.java +++ b/main/src/main/java/org/onap/policy/api/main/exception/PolicyApiRuntimeException.java @@ -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; /**