Class ParsingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.elasticsearch.ElasticsearchException
org.elasticsearch.xpack.esql.core.QlException
org.elasticsearch.xpack.esql.core.QlClientException
org.elasticsearch.xpack.esql.EsqlClientException
org.elasticsearch.xpack.esql.parser.ParsingException
- All Implemented Interfaces:
Serializable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.ElasticsearchException
REST_EXCEPTION_SKIP_CAUSE, REST_EXCEPTION_SKIP_STACK_TRACE, REST_EXCEPTION_SKIP_STACK_TRACE_DEFAULT, STACK_TRACEFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionParsingException(Exception cause, Source source, String message, Object... args) ParsingException(String message, Exception cause, int line, int charPositionInLine) ParsingException(String message, Object... args) To be used only if the exception cannot be associated with a specific position in the query.ParsingException(Source source, String message, Object... args) -
Method Summary
Modifier and TypeMethodDescriptionstatic ParsingExceptioncombineParsingExceptions(Iterator<ParsingException> parsingExceptions) Combine multipleParsingExceptioninto one, this is used byLogicalPlanBuilderto consolidate multiple named parameters relatedParsingException.intintMethods inherited from class org.elasticsearch.xpack.esql.core.QlClientException
statusMethods inherited from class org.elasticsearch.ElasticsearchException
addBodyHeader, addBodyHeader, addHttpHeader, addHttpHeader, addMetadata, addMetadata, failureFromXContent, fromXContent, generateFailureXContent, generateThrowableXContent, generateThrowableXContent, getBodyHeader, getBodyHeaderKeys, getBodyHeaders, getDetailedMessage, getExceptionName, getExceptionName, getHttpHeader, getHttpHeaderKeys, getHttpHeaders, getId, getIndex, getMetadata, getMetadata, getMetadataKeys, getResourceId, getResourceType, getRootCause, getShardId, guessRootCauses, guessRootCauses, innerFromXContent, innerToXContent, isRegistered, isTimeout, metadataToXContent, readException, readException, readStackTrace, setIndex, setIndex, setResources, setShard, toString, toXContent, toXContent, unwrapCause, writeException, writeStackTraces, writeTo, writeToMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
ParsingException
-
ParsingException
To be used only if the exception cannot be associated with a specific position in the query. Error message will start withline -1:-1:instead of using specific location. -
ParsingException
-
ParsingException
-
-
Method Details
-
combineParsingExceptions
public static ParsingException combineParsingExceptions(Iterator<ParsingException> parsingExceptions) Combine multipleParsingExceptioninto one, this is used byLogicalPlanBuilderto consolidate multiple named parameters relatedParsingException. -
getLineNumber
public int getLineNumber() -
getColumnNumber
public int getColumnNumber() -
getErrorMessage
-
getMessage
- Overrides:
getMessagein classThrowable
-