Add QueryShardException to list in ElasticsearchException

This commit is contained in:
Christoph Büscher 2015-09-18 12:28:13 +02:00
parent bab9523c56
commit c6d254ad7e
1 changed files with 2 additions and 1 deletions

View File

@ -606,8 +606,9 @@ public class ElasticsearchException extends RuntimeException implements ToXConte
exceptions.put(org.elasticsearch.indices.TypeMissingException.class, 139); exceptions.put(org.elasticsearch.indices.TypeMissingException.class, 139);
// added in 3.x // added in 3.x
exceptions.put(org.elasticsearch.discovery.Discovery.FailedToCommitClusterStateException.class, 140); exceptions.put(org.elasticsearch.discovery.Discovery.FailedToCommitClusterStateException.class, 140);
exceptions.put(org.elasticsearch.index.query.QueryShardException.class, 141);
final int maxOrd = 140; final int maxOrd = 141;
assert exceptions.size() == maxOrd + 1; assert exceptions.size() == maxOrd + 1;
Constructor<? extends ElasticsearchException>[] idToSupplier = new Constructor[maxOrd + 1]; Constructor<? extends ElasticsearchException>[] idToSupplier = new Constructor[maxOrd + 1];
for (Map.Entry<Class<? extends ElasticsearchException>, Integer> e : exceptions.entrySet()) { for (Map.Entry<Class<? extends ElasticsearchException>, Integer> e : exceptions.entrySet()) {