Merge of new rebased code
[appc.git] / appc-dg / appc-dg-shared / appc-dg-mdsal-store / src / main / java / org / openecomp / appc / mdsal / exception / MDSALStoreException.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * openECOMP : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights
6  *                                              reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.openecomp.appc.mdsal.exception;
23
24 /**
25  * This is custom exception type defined for MD-SAL store. All exceptions thrown by mdsal store module need to be wrapped in this class.
26 */
27  public class MDSALStoreException extends Exception {
28
29     private static final long serialVersionUID = 1L;
30
31     public MDSALStoreException(){
32     }
33
34     /**
35      * Create MDSALStoreException using only message.
36      * @param message -- message to the caller.
37      */
38     public MDSALStoreException (String message){
39         super(message);
40     }
41
42     /**
43      * Create MDSALStoreException using orignal cause
44      * @param cause - cause that is being wrapped / suppressed.
45      */
46     public MDSALStoreException (Throwable cause){
47         super(cause);
48     }
49
50     /**
51      *
52      * @param message - message to the caller.
53      * @param cause - cause that is being wrapped / suppressed .
54      */
55     public MDSALStoreException(String message , Throwable cause){
56         super(message , cause);
57     }
58
59     /**
60      *
61      * @param message - message to the caller.
62      * @param cause - cause that is being wrapped / suppressed .
63      * @param enableSuppression - Indicates if suppression is enabled.
64      * @param writableStackTrace - Indicates if writable stacktrace is supported
65      */
66     public MDSALStoreException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
67         super(message, cause, enableSuppression, writableStackTrace);
68     }
69 }