public class ParseException extends RuntimeException
InputSourceReader#read()
and IncrementalIndex#addToFacts(). To easily handle ParseExceptions, consider using
FilteringCloseableInputRowIterator and ParseExceptionHandler to iterate input rows and
to add rows to IncrementalIndex, respectively.
When you use InputSourceReader#sample(), the ParseException will not be thrown, but be stored in
InputRowListPlusRawValues.
During query, ParseException can be thrown in SQL planning. It should be never thrown once a query plan is
constructed.| Constructor and Description |
|---|
ParseException(String input,
boolean fromPartiallyValidRow,
String formatText,
Object... arguments) |
ParseException(String input,
boolean fromPartiallyValidRow,
Throwable cause,
String formatText,
Object... arguments) |
ParseException(String input,
String formatText,
Object... arguments) |
ParseException(String input,
Throwable cause,
String formatText,
Object... arguments) |
| Modifier and Type | Method and Description |
|---|---|
String |
getInput() |
long |
getTimeOfExceptionMillis() |
boolean |
isFromPartiallyValidRow() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ParseException(@Nullable String input, String formatText, Object... arguments)
public ParseException(@Nullable String input, boolean fromPartiallyValidRow, String formatText, Object... arguments)
public ParseException(@Nullable String input, Throwable cause, String formatText, Object... arguments)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.