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