Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
update mdbc project
- Loading branch information
Tschaen, Brendan (bt054f)
committed
Jun 18, 2018
1 parent
ae7db74
commit fe34488
Showing
36 changed files
with
4,634 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
recipes/mdbc/src/main/java/com/att/research/exceptions/MDBCServiceException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/* | ||
* ============LICENSE_START========================================== | ||
* org.onap.music | ||
* =================================================================== | ||
* Copyright (c) 2017 AT&T Intellectual Property | ||
* =================================================================== | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* ============LICENSE_END============================================= | ||
* ==================================================================== | ||
*/ | ||
|
||
package com.att.research.exceptions; | ||
|
||
/** | ||
* @author inam | ||
* | ||
*/ | ||
public class MDBCServiceException extends Exception { | ||
|
||
|
||
private int errorCode; | ||
private String errorMessage; | ||
|
||
public int getErrorCode() { | ||
return errorCode; | ||
} | ||
|
||
|
||
public void setErrorCode(int errorCode) { | ||
this.errorCode = errorCode; | ||
} | ||
|
||
|
||
public String getErrorMessage() { | ||
return errorMessage; | ||
} | ||
|
||
|
||
public void setErrorMessage(String errorMessage) { | ||
this.errorMessage = errorMessage; | ||
} | ||
|
||
|
||
public MDBCServiceException() { | ||
super(); | ||
} | ||
|
||
|
||
public MDBCServiceException(String message) { | ||
super(message); | ||
|
||
} | ||
|
||
|
||
public MDBCServiceException(Throwable cause) { | ||
super(cause); | ||
|
||
} | ||
|
||
|
||
public MDBCServiceException(String message, Throwable cause) { | ||
super(message, cause); | ||
|
||
} | ||
|
||
|
||
public MDBCServiceException(String message, Throwable cause, boolean enableSuppression, | ||
boolean writableStackTrace) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
|
||
} | ||
|
||
} |
89 changes: 89 additions & 0 deletions
89
recipes/mdbc/src/main/java/com/att/research/exceptions/QueryException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
/* | ||
* ============LICENSE_START========================================== | ||
* org.onap.music | ||
* =================================================================== | ||
* Copyright (c) 2017 AT&T Intellectual Property | ||
* =================================================================== | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* ============LICENSE_END============================================= | ||
* ==================================================================== | ||
*/ | ||
package com.att.research.exceptions; | ||
|
||
|
||
|
||
/** | ||
* @author inam | ||
* | ||
*/ | ||
public class QueryException extends Exception { | ||
|
||
/** | ||
* | ||
*/ | ||
private static final long serialVersionUID = 1L; | ||
private int errorCode; | ||
|
||
|
||
/** | ||
* | ||
*/ | ||
public QueryException() { | ||
super(); | ||
} | ||
|
||
/** | ||
* @param message | ||
*/ | ||
public QueryException(String message) { | ||
super(message); | ||
} | ||
|
||
|
||
|
||
/** | ||
* @param message | ||
*/ | ||
public QueryException(String message, int errorCode) { | ||
super(message); | ||
this.errorCode = errorCode; | ||
} | ||
|
||
/** | ||
* @param cause | ||
*/ | ||
public QueryException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
/** | ||
* @param message | ||
* @param cause | ||
*/ | ||
public QueryException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
/** | ||
* @param message | ||
* @param cause | ||
* @param enableSuppression | ||
* @param writableStackTrace | ||
*/ | ||
public QueryException(String message, Throwable cause, boolean enableSuppression, | ||
boolean writableStackTrace) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
} | ||
|
||
} |
Oops, something went wrong.