Interface ErrorFactory
- All Known Implementing Classes:
JsonLoaderImpl
,KafkaJsonLoader
public interface ErrorFactory
To avoid coupling the JSON structure parser with Drill's error
reporting mechanism, the caller passes in an instance of this
error factory which will build the required errors, including
filling in caller-specific context.
-
Method Summary
Modifier and TypeMethodDescriptionI/O error reported from the Jackson JSON parser.Parser is configured to find a message tag within the JSON and a syntax occurred when following the data path.parseError
(String string, com.fasterxml.jackson.core.JsonParseException e) The Jackson JSON parser failed to start on the input file.structureError
(String string) General structure-level error: something very unusual occurred in the JSON that passed Jackson, but failed in the structure parser.syntaxError
(com.fasterxml.jackson.core.JsonParseException e) The Jackson parser reported a syntax error.syntaxError
(com.fasterxml.jackson.core.JsonToken token) Received an unexpected token.The Jackson parser reported an error when trying to convert a value to a specific type.Error recovery is on, the structure parser tried to recover, but encountered too many other errors and gave up.
-
Method Details
-
parseError
The Jackson JSON parser failed to start on the input file. -
ioException
I/O error reported from the Jackson JSON parser. -
structureError
General structure-level error: something very unusual occurred in the JSON that passed Jackson, but failed in the structure parser. = -
syntaxError
The Jackson parser reported a syntax error. Will not occur if recovery is enabled. -
typeError
The Jackson parser reported an error when trying to convert a value to a specific type. Should never occur since we only convert to the type that Jackson itself identified. -
syntaxError
Received an unexpected token. Should never occur as the Jackson parser itself catches errors. -
unrecoverableError
RuntimeException unrecoverableError()Error recovery is on, the structure parser tried to recover, but encountered too many other errors and gave up. -
messageParseError
Parser is configured to find a message tag within the JSON and a syntax occurred when following the data path.
-