It generally provides location and data information in case of a writing failure.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final long | |
| private final Object[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private | TextWritingException(String
message with details about the error message, long the number of records written until the error occurred recordCount, Object[] the input row that was being written when the error occurred row, String the characters already written to the output record. recordCharacters, Throwable the cause of the error cause)Creates a new exception with information about an error that occurred when writing data to some output. |
| public | TextWritingException(String
message with details about the error message, long the number of records written until the error occurred recordCount, String the characters already written to the output record. recordCharacters, Throwable the cause of the error cause)Creates a new exception with information about an error that occurred when writing data to some output. |
| public | TextWritingException(String
message with details about the error message, long the number of records written until the error occurred recordCount, Object[] the input row that was being written when the error occurred row, Throwable the cause of the error cause)Creates a new exception with information about an error that occurred when writing data to some output. |
| public | TextWritingException(String
message with details about the error message)Creates a new exception with information about an error that occurred when writing data to some output. |
| public | TextWritingException(Throwable
the cause of the error cause)Creates a new exception with information about an error that occurred when writing data to some output. |
| public | TextWritingException(String
message with details about the error message, long index of the line being written to the output when the error occurred line, Object[] the input row that was being written when the error occurred row)Creates a new exception with information about an error that occurred when writing data to some output. |
| public | TextWritingException(String
message with details about the error message, long index of the line being written to the output when the error occurred line, String the characters already written to the output record. recordCharacters)Creates a new exception with information about an error that occurred when writing data to some output. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | getDetails()
Implements abstract com. |
| protected String | getErrorDescription()
Implements abstract com. |
| public String | Returns: the character data that failed to be writtenReturns the character data that failed to be written |
| public long | Returns: the number of records written before the exception occurred.Returns the number of records written before the exception occurred. |
| public Object[] | Returns: the data that failed to be writtenReturns the data that failed to be written |
| recordCharacters | back to summary |
|---|---|
| private final String recordCharacters | |
| recordCount | back to summary |
|---|---|
| private final long recordCount | |
| recordData | back to summary |
|---|---|
| private final Object[] recordData | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| TextWritingException | back to summary |
|---|---|
| private TextWritingException(String message, long recordCount, Object[] row, String recordCharacters, Throwable cause) Creates a new exception with information about an error that occurred when writing data to some output.
| |
| TextWritingException | back to summary |
|---|---|
| public TextWritingException(String message, long recordCount, String recordCharacters, Throwable cause) Creates a new exception with information about an error that occurred when writing data to some output. | |
| TextWritingException | back to summary |
|---|---|
| public TextWritingException(String message, long recordCount, Object[] row, Throwable cause) Creates a new exception with information about an error that occurred when writing data to some output. | |
| TextWritingException | back to summary |
|---|---|
| public TextWritingException(String message) Creates a new exception with information about an error that occurred when writing data to some output.
| |
| TextWritingException | back to summary |
|---|---|
| public TextWritingException(Throwable cause) Creates a new exception with information about an error that occurred when writing data to some output.
| |
| TextWritingException | back to summary |
|---|---|
| public TextWritingException(String message, long line, Object[] row) Creates a new exception with information about an error that occurred when writing data to some output. | |
| TextWritingException | back to summary |
|---|---|
| public TextWritingException(String message, long line, String recordCharacters) Creates a new exception with information about an error that occurred when writing data to some output. | |
| 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 | |
| getRecordCharacters | back to summary |
|---|---|
| public String getRecordCharacters() Returns the character data that failed to be written
| |
| getRecordCount | back to summary |
|---|---|
| public long getRecordCount() Returns the number of records written before the exception occurred.
| |
| getRecordData | back to summary |
|---|---|
| public Object[] getRecordData() Returns the data that failed to be written
| |