Class ParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.druid.java.util.common.parsers.ParseException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UnparseableColumnsParseException
public class ParseException extends RuntimeException
ParseException can be thrown on both ingestion side and query side. During ingestion, ParseException can be thrown in two places, i.e.,InputSourceReader#read()andIncrementalIndex#addToFacts(). To easily handle ParseExceptions, consider usingFilteringCloseableInputRowIteratorandParseExceptionHandlerto iterate input rows and to add rows to IncrementalIndex, respectively. When you useInputSourceReader#sample(), the ParseException will not be thrown, but be stored inInputRowListPlusRawValues. During query, ParseException can be thrown in SQL planning. It should be never thrown once a query plan is constructed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInput()longgetTimeOfExceptionMillis()booleanisFromPartiallyValidRow()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ParseException
public ParseException(@Nullable String input, String formatText, Object... arguments)
-
ParseException
public ParseException(@Nullable String input, boolean fromPartiallyValidRow, String formatText, Object... arguments)
-
ParseException
public ParseException(@Nullable String input, Throwable cause, String formatText, Object... arguments)
-
-