8a434fa7bb0b71091dc5e5f4c111ec695ef53b8c
[vnfsdk/refrepo.git] /
1 /**
2  * Copyright 2017 Huawei Technologies Co., Ltd.
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package org.onap.vnfsdk.marketplace.db.exception;
17
18 public class MarketplaceResourceException extends ErrorCodeException {
19   private static final long serialVersionUID = 5699508780537383310L;
20
21
22   public MarketplaceResourceException(int errcode) {
23     super(errcode, "");
24   }
25
26
27   public MarketplaceResourceException(int errcode, Throwable cause) {
28     super(cause, errcode);
29   }
30
31
32   public MarketplaceResourceException(int errcode, String message, Throwable cause) {
33     super(cause, errcode, message);
34   }
35
36
37   public MarketplaceResourceException() {
38     super(9999999, null);
39   }
40
41
42   public MarketplaceResourceException(String message) {
43     super(9999999, message);
44   }
45
46
47   public MarketplaceResourceException(Throwable cause) {
48     super(cause, 9999999);
49   }
50
51
52   public MarketplaceResourceException(String message, Throwable cause) {
53     super(cause, 9999999, message);
54   }
55
56
57   /**
58    * catalog resource exception.
59    * @param source throwable source
60    * @param errId error Id
61    * @param debugMessage debug message
62    * @param arguments arguments
63    */
64   public MarketplaceResourceException(Throwable source, int errId, String debugMessage,
65       String[] arguments) {
66     super(source, errId, debugMessage, arguments);
67   }
68
69   public MarketplaceResourceException(Throwable source, int category, int code, String debugMessage,
70       String[] arguments) {
71     super(source, category, code, debugMessage, arguments);
72   }
73
74   public int getErrcode() {
75     return super.getErrorCode();
76   }
77 }