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