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