Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Inconsistent exception types thrown while parsing XContent #27147
In most cases, if the expected
I think that it would be much cleaner if only one exception type is used (at least from now on).
For example what exception type should be thrown when a stricter validation of query field names is introduced (#26013). A different one per request (based on the exception thrown till now in the request)? Or an exception of type X?
Or maybe some of the exception types should be changed? For example can
I think that
Yes let's stick to
it could be, I guess it is convenient to subclass