- 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
public class SplitParsingException extends DRException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SplitParsingException(DataSplit split, Exception e)Report a parse error in the specified split at the given location, possibly approximate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()longgetOffsetInSplit()Gets the byte offset into the data source at which the error was found.StringgetSource()Gets a string describing the data source of the split.longgetSplitStart()voidsetOffsetInSplit(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 Detail
-
SplitParsingException
public SplitParsingException(DataSplit split, Exception e)
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 Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getSource
public String 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
-
-