Skip to content

Commit 118e4ef

Browse files
define generic runtime exceptions for this project
1 parent e5bb2bf commit 118e4ef

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2020 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
3+
*
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
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
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.
15+
*/
16+
package org.utplsql.sqldev.exception;
17+
18+
public class GenericDatabaseAccessException extends RuntimeException {
19+
private static final long serialVersionUID = -5489500390596695295L;
20+
21+
public GenericDatabaseAccessException(String message) {
22+
super(message);
23+
}
24+
25+
public GenericDatabaseAccessException(String message, Throwable cause) {
26+
super(message, cause);
27+
}
28+
29+
public GenericDatabaseAccessException(Throwable cause) {
30+
super(cause);
31+
}
32+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2020 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
3+
*
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
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
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.
15+
*/
16+
package org.utplsql.sqldev.exception;
17+
18+
public class GenericRuntimeException extends RuntimeException {
19+
private static final long serialVersionUID = -6258053040039956647L;
20+
21+
public GenericRuntimeException(String message) {
22+
super(message);
23+
}
24+
25+
public GenericRuntimeException(String message, Throwable cause) {
26+
super(message, cause);
27+
}
28+
29+
public GenericRuntimeException(Throwable cause) {
30+
super(cause);
31+
}
32+
}

0 commit comments

Comments
 (0)