Skip to content

Commit 243ce8f

Browse files
author
mareks
committed
parser throws more user-friendly error message in case of opening
1 parent ab4ac02 commit 243ce8f

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ publishing {
5151
maven(MavenPublication) {
5252
groupId = 'de.inetsoftware'
5353
artifactId = 'exceljconnect'
54-
version = '1.6'
54+
version = '1.7'
5555
from components.java
5656
pom {
5757
name = 'Excel driver for Java'

src/com/inet/excel/ExcelDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class ExcelDriver implements Driver {
4040
public static final String URL_PREFIX = "jdbc:inetexcel:";
4141
public static final String DRIVER_NAME = "inetexcel";
4242
public static final int MAJOR_VERSION = 1;
43-
public static final int MINOR_VERSION = 6;
43+
public static final int MINOR_VERSION = 7;
4444

4545
/** Throws exception indicating that requested operation is not supported.
4646
* @throws SQLException exception indicating that requested operation is not supported.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright 2024 i-net software
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 com.inet.excel.parser;
17+
18+
/** Exception that may be thrown when I/O or processing errors occur while reading data from Excel document.
19+
*/
20+
public class ExcelParserException extends RuntimeException {
21+
22+
/** Creates new exception with specified cause.
23+
* @param cause cause of the exception.
24+
*/
25+
public ExcelParserException( Throwable cause ) {
26+
super( cause );
27+
}
28+
29+
/** Creates new exception with specified message.
30+
* @param message the detail message.
31+
*/
32+
public ExcelParserException( String message ) {
33+
super( message );
34+
}
35+
}

0 commit comments

Comments
 (0)