c18ad43229f39ef28c93f5abfeeafec798f6f807
[vfc/nfvo/catalog.git] /
1 /**
2  * Copyright 2016 ZTE Corporation.
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.openo.commontosca.catalog.db.exception;
17
18 public class CatalogResourceException extends ErrorCodeException {
19   private static final long serialVersionUID = 5699508780537383310L;
20
21
22   public CatalogResourceException(int errcode) {
23     super(errcode, "");
24   }
25
26
27   public CatalogResourceException(int errcode, Throwable cause) {
28     super(cause, errcode);
29   }
30
31
32   public CatalogResourceException(int errcode, String message, Throwable cause) {
33     super(cause, errcode, message);
34   }
35
36
37   public CatalogResourceException() {
38     super(9999999, null);
39   }
40
41
42   public CatalogResourceException(String message) {
43     super(9999999, message);
44   }
45
46
47   public CatalogResourceException(Throwable cause) {
48     super(cause, 9999999);
49   }
50
51
52   public CatalogResourceException(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 CatalogResourceException(Throwable source, int errId, String debugMessage,
65       String[] arguments) {
66     super(source, errId, debugMessage, arguments);
67   }
68
69   public CatalogResourceException(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 }