Merge "Read lock promotion"
[music.git] / src / main / java / org / onap / music / exceptions / MusicQueryException.java
1 /*
2  * ============LICENSE_START==========================================
3  * org.onap.music
4  * ===================================================================
5  *  Copyright (c) 2017 AT&T Intellectual Property
6  * ===================================================================
7  *  Licensed under the Apache License, Version 2.0 (the "License");
8  *  you may not use this file except in compliance with the License.
9  *  You may obtain a copy of the License at
10  * 
11  *     http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  *  Unless required by applicable law or agreed to in writing, software
14  *  distributed under the License is distributed on an "AS IS" BASIS,
15  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  *  See the License for the specific language governing permissions and
17  *  limitations under the License.
18  * 
19  * ============LICENSE_END=============================================
20  * ====================================================================
21  */
22
23 package org.onap.music.exceptions;
24
25
26
27 /**
28  * @author inam
29  *
30  */
31 public class MusicQueryException extends Exception {
32
33     /**
34      * 
35      */
36     private static final long serialVersionUID = 1L;
37     private int errorCode;
38
39
40     /**
41      * 
42      */
43     public MusicQueryException() {
44         super();
45     }
46
47     /**
48      * @param message
49      */
50     public MusicQueryException(String message) {
51         super(message);
52     }
53
54
55
56     /**
57      * @param message
58      */
59     public MusicQueryException(String message, int errorCode) {
60         super(message);
61         this.errorCode = errorCode;
62     }
63
64     /**
65      * @param cause
66      */
67     public MusicQueryException(Throwable cause) {
68         super(cause);
69     }
70
71     /**
72      * @param message
73      * @param cause
74      */
75     public MusicQueryException(String message, Throwable cause) {
76         super(message, cause);
77     }
78
79     /**
80      * @param message
81      * @param cause
82      * @param enableSuppression
83      * @param writableStackTrace
84      */
85     public MusicQueryException(String message, Throwable cause, boolean enableSuppression,
86                     boolean writableStackTrace) {
87         super(message, cause, enableSuppression, writableStackTrace);
88     }
89
90 }