Dumbed down exception to work with ElasticSearch 0.19.0.