f78810ee5f13772bb031870dbfb1115065d6b46a
[portal/sdk.git] /
1 /*-
2  * ================================================================================
3  * eCOMP Portal SDK
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  */
20 package org.openecomp.portalsdk.analytics.error;
21
22 public class ReportSQLException extends RaptorException {
23         private String reportSQL = null;
24
25         public ReportSQLException(String message, String reportSQL) {
26                 super(message);
27
28                 this.reportSQL = reportSQL;
29         } // ReportSQLException
30
31         public ReportSQLException(String message, String reportSQL, Throwable ex) {
32                 super(message, ex);
33
34                 this.reportSQL = reportSQL;
35         } // ReportSQLException
36
37         public ReportSQLException(String message) {
38                 super(message);
39                 this.reportSQL = "";
40         } // ReportSQLException
41         
42         public ReportSQLException(String message, Throwable ex) {
43                 super(message, ex);
44                 this.reportSQL = "";
45         } // ReportSQLException 
46         
47         public String getReportSQL() {
48                 return reportSQL;
49         } // getReportSQL
50
51 } // ReportSQLException