e632d890512c0398b4afb8c581eac0950b5f015b
[vfc/nfvo/catalog.git] /
1 /**
2  * Copyright 2016 [ZTE] and others.
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
17 package org.openo.commontosca.catalog.db.exception;
18
19 public class CatalogResourceException extends ErrorCodeException {
20   private static final long serialVersionUID = 5699508780537383310L;
21
22
23   public CatalogResourceException(int errcode) {
24     super(errcode, "");
25   }
26
27
28   public CatalogResourceException(int errcode, Throwable cause) {
29     super(cause, errcode);
30   }
31
32
33   public CatalogResourceException(int errcode, String message, Throwable cause) {
34     super(cause, errcode, message);
35   }
36
37
38   public CatalogResourceException() {
39     super(9999999, null);
40   }
41
42
43   public CatalogResourceException(String message) {
44     super(9999999, message);
45   }
46
47
48   public CatalogResourceException(Throwable cause) {
49     super(cause, 9999999);
50   }
51
52
53   public CatalogResourceException(String message, Throwable cause) {
54     super(cause, 9999999, message);
55   }
56
57
58   /**
59    * catalog resource exception.
60    * @param source throwable source
61    * @param errId error Id
62    * @param debugMessage debug message
63    * @param arguments arguments
64    */
65   public CatalogResourceException(Throwable source, int errId, String debugMessage,
66       String[] arguments) {
67     super(source, errId, debugMessage, arguments);
68   }
69
70   public CatalogResourceException(Throwable source, int category, int code, String debugMessage,
71       String[] arguments) {
72     super(source, category, code, debugMessage, arguments);
73   }
74
75   public int getErrcode() {
76     return super.getErrorCode();
77   }
78 }