-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new Exception type to indicate inconsistent data.
In rare cases, the text format includes line breaks or other elements that break GNormPlus processing. This results in unrecoverable errors. The new Exception type indicates such cases so that the calling code can react accordingly.
- Loading branch information
Showing
4 changed files
with
81 additions
and
6 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
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,32 @@ | ||
package GNormPluslib; | ||
|
||
public class InconsistentDataException extends RuntimeException { | ||
private String docId; | ||
|
||
public String getDocId() { | ||
return docId; | ||
} | ||
|
||
public void setDocId(String docId) { | ||
this.docId = docId; | ||
} | ||
|
||
public InconsistentDataException() { | ||
} | ||
|
||
public InconsistentDataException(String message) { | ||
super(message); | ||
} | ||
|
||
public InconsistentDataException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public InconsistentDataException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
public InconsistentDataException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
} | ||
} |
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