/*-
* ============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.
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;
/**
* 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;
/**