java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.pervasive.datarush.exceptions.DRException
com.pervasive.datarush.operators.io.SplitParsingException
- All Implemented Interfaces:
Serializable
Indicates a parsing error on a data split.
The exception always contains:
- the path of the data source
- the offset into the data source; this information may be an approximation
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSplitParsingException(DataSplit split, Exception e) Report a parse error in the specified split at the given location, possibly approximate. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the byte offset into the data source at which the error was found.Gets a string describing the data source of the split.longvoidsetOffsetInSplit(long offset) Sets the index of the record raising the error.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SplitParsingException
Report a parse error in the specified split at the given location, possibly approximate. Locations may be approximate when parsing text data.- Parameters:
split- the split being parsede- the underlying cause of the error
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getSource
Gets a string describing the data source of the split. Generally, this is a file path.- Returns:
- the description of the data source
-
getSplitStart
public long getSplitStart() -
getOffsetInSplit
public long getOffsetInSplit()Gets the byte offset into the data source at which the error was found. This may be an approximate offset.- Returns:
- the error's location in the source
-
setOffsetInSplit
public void setOffsetInSplit(long offset) Sets the index of the record raising the error.- Parameters:
record- the record index
-