Updated exception handling for ElasticsearchClient

Now handling errors in the style of elasticsearch-py see
model/ElasticsearchClient#raiseErrors for more details.