It generally provides location information about where in the input a parsing error occurred.
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private int | |
| private String | |
| protected int[] | |
| private String[] | |
| private long | |
| private long | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | TextParsingException(Context
the context of the parser when an error occurred context, String message with details about the error message, Throwable the cause of the error cause)Creates a new exception with information about an error that occurred when parsing some input. |
| public | TextParsingException(ParsingContext
the context of the parser when an error occurred context, String message with details about the error message)Creates a new exception with information about an error that occurred when parsing some input. |
| public | TextParsingException(ParsingContext
the context of the parser when an error occurred context, Throwable the cause of the error cause)Creates a new exception with information about an error that occurred when parsing some input. |
| public | TextParsingException(ParsingContext
the context of the parser when an error occurred context)Creates a new exception with information about an error that occurred when parsing some input. |
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: the location of the last character read from before the error occurred.Returns the location of the last character read from before the error occurred. |
| public int | Returns: the column index where the exception occurred.Returns the column index where the exception occurred. |
| protected String | getDetails()
Implements abstract com. |
| protected String | getErrorDescription()
Implements abstract com. |
| public final String[] | Returns: the headers processed from the input, if any.Returns the headers processed from the input, if any. |
| public long | Returns: the line number where the exception occurred.Returns the line number where the exception occurred. |
| public final String | Returns: the last chunk of content parsed before the error took placeReturns the last chunk of content parsed before the error took place |
| public long | Returns: the record number when the exception occurred.Returns the record number when the exception occurred. |
| protected void | |
| private void |
| charIndex | back to summary |
|---|---|
| private long charIndex | |
| columnIndex | back to summary |
|---|---|
| private int columnIndex | |
| content | back to summary |
|---|---|
| private String content | |
| extractedIndexes | back to summary |
|---|---|
| protected int[] extractedIndexes | |
| headers | back to summary |
|---|---|
| private String[] headers | |
| lineIndex | back to summary |
|---|---|
| private long lineIndex | |
| recordNumber | back to summary |
|---|---|
| private long recordNumber | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| TextParsingException | back to summary |
|---|---|
| public TextParsingException(Context context, String message, Throwable cause) Creates a new exception with information about an error that occurred when parsing some input. | |
| TextParsingException | back to summary |
|---|---|
| public TextParsingException(ParsingContext context, String message) Creates a new exception with information about an error that occurred when parsing some input.
| |
| TextParsingException | back to summary |
|---|---|
| public TextParsingException(ParsingContext context, Throwable cause) Creates a new exception with information about an error that occurred when parsing some input.
| |
| TextParsingException | back to summary |
|---|---|
| public TextParsingException(ParsingContext context) Creates a new exception with information about an error that occurred when parsing some input.
| |
| getCharIndex | back to summary |
|---|---|
| public long getCharIndex() Returns the location of the last character read from before the error occurred.
| |
| getColumnIndex | back to summary |
|---|---|
| public int getColumnIndex() Returns the column index where the exception occurred.
| |
| getDetails | back to summary |
|---|---|
| protected String getDetails() Implements abstract com. Doc from com. Subclasses must implement this method to return as much information as possible about the internal state of the parser/writer.
Use | |
| getErrorDescription | back to summary |
|---|---|
| protected String getErrorDescription() Implements abstract com. Doc from com. Returns a generic description of the error. The result of this method is used by | |
| getHeaders | back to summary |
|---|---|
| public final String[] getHeaders() Returns the headers processed from the input, if any.
| |
| getLineIndex | back to summary |
|---|---|
| public long getLineIndex() Returns the line number where the exception occurred.
| |
| getParsedContent | back to summary |
|---|---|
| public final String getParsedContent() Returns the last chunk of content parsed before the error took place
| |
| getRecordNumber | back to summary |
|---|---|
| public long getRecordNumber() Returns the record number when the exception occurred.
| |
| setContext | back to summary |
|---|---|
| protected void setContext(Context context) | |
| setParsingContext | back to summary |
|---|---|
| private void setParsingContext(ParsingContext parsingContext) | |