Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ExcelRuntimeException #232

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.pjfanning.xlsx.exceptions;

public class CloseException extends RuntimeException {
public class CloseException extends ExcelRuntimeException {

public CloseException() {
super();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.github.pjfanning.xlsx.exceptions;

/**
* A parent class for all the excel-streaming-reader specific Runtime Exceptions.
*/
public class ExcelRuntimeException extends RuntimeException {

protected ExcelRuntimeException() {
super();
}

protected ExcelRuntimeException(String msg) {
super(msg);
}

protected ExcelRuntimeException(Exception e) {
super(e);
}

protected ExcelRuntimeException(String msg, Exception e) {
super(msg, e);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.pjfanning.xlsx.exceptions;

public class MissingSheetException extends RuntimeException {
public class MissingSheetException extends ExcelRuntimeException {

public MissingSheetException() {
super();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.pjfanning.xlsx.exceptions;

public class NotSupportedException extends RuntimeException {
public class NotSupportedException extends ExcelRuntimeException {

public NotSupportedException() {
super();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.pjfanning.xlsx.exceptions;

public class OpenException extends RuntimeException {
public class OpenException extends ExcelRuntimeException {

public OpenException() {
super();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.pjfanning.xlsx.exceptions;

public class ParseException extends RuntimeException {
public class ParseException extends ExcelRuntimeException {

public ParseException() {
super();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.pjfanning.xlsx.exceptions;

public class ReadException extends RuntimeException {
public class ReadException extends ExcelRuntimeException {

public ReadException() {
super();
Expand Down