Package org.elasticsearch.xpack.esql
Class ExceptionUtils
java.lang.Object
org.elasticsearch.xpack.esql.ExceptionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VerificationExceptionmath(Source source, ArithmeticException e) Create aVerificationExceptionfrom anArithmeticExceptionthrown because of an invalid math expression.
-
Constructor Details
-
ExceptionUtils
public ExceptionUtils()
-
-
Method Details
-
math
Create aVerificationExceptionfrom anArithmeticExceptionthrown because of an invalid math expression.- Parameters:
source- the invalid part of the query causing the exceptione- the exception that was thrown- Returns:
- an exception with a user-readable error message with http code 400
-