add FailedToCommitException to registration

This commit is contained in:
Boaz Leskes 2015-08-23 18:24:53 +02:00
parent b702843fe9
commit 7390bcf833
1 changed files with 2 additions and 1 deletions

View File

@ -596,7 +596,8 @@ public class ElasticsearchException extends RuntimeException implements ToXConte
ResourceNotFoundException.class,
IndexNotFoundException.class,
ShardNotFoundException.class,
NotSerializableExceptionWrapper.class
NotSerializableExceptionWrapper.class,
org.elasticsearch.discovery.zen.publish.PublishClusterStateAction.FailedToCommitException.class
};
Map<String, Constructor<? extends ElasticsearchException>> mapping = new HashMap<>(exceptions.length);
for (Class<? extends ElasticsearchException> e : exceptions) {