2 * Copyright 2016 [ZTE] and others.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.openo.commontosca.catalog.db.exception;
21 public class CatalogResourceException extends ErrorCodeException {
22 private static final long serialVersionUID = 5699508780537383310L;
25 public CatalogResourceException(int errcode) {
30 public CatalogResourceException(int errcode, Throwable cause) {
31 super(cause, errcode);
35 public CatalogResourceException(int errcode, String message, Throwable cause) {
36 super(cause, errcode, message);
40 public CatalogResourceException() {
45 public CatalogResourceException(String message) {
46 super(9999999, message);
50 public CatalogResourceException(Throwable cause) {
51 super(cause, 9999999);
55 public CatalogResourceException(String message, Throwable cause) {
56 super(cause, 9999999, message);
60 public CatalogResourceException(Throwable source, int errID, String debugMessage,
62 super(source, errID, debugMessage, arguments);
65 public CatalogResourceException(Throwable source, int category, int code, String debugMessage,
67 super(source, category, code, debugMessage, arguments);
70 public int getErrcode() {
71 return super.getErrorCode();