2 * Copyright 2017 Huawei Technologies Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.onap.vnfsdk.marketplace.db.exception;
18 public class MarketplaceResourceException extends ErrorCodeException {
19 private static final long serialVersionUID = 5699508780537383310L;
22 public MarketplaceResourceException(int errcode) {
27 public MarketplaceResourceException(int errcode, Throwable cause) {
28 super(cause, errcode);
32 public MarketplaceResourceException(int errcode, String message, Throwable cause) {
33 super(cause, errcode, message);
37 public MarketplaceResourceException() {
42 public MarketplaceResourceException(String message) {
43 super(9999999, message);
47 public MarketplaceResourceException(Throwable cause) {
48 super(cause, 9999999);
52 public MarketplaceResourceException(String message, Throwable cause) {
53 super(cause, 9999999, message);
58 * catalog resource exception.
59 * @param source throwable source
60 * @param errId error Id
61 * @param debugMessage debug message
62 * @param arguments arguments
64 public MarketplaceResourceException(Throwable source, int errId, String debugMessage,
66 super(source, errId, debugMessage, arguments);
69 public MarketplaceResourceException(Throwable source, int category, int code, String debugMessage,
71 super(source, category, code, debugMessage, arguments);
74 public int getErrcode() {
75 return super.getErrorCode();