Because MergeMappingException is in the error message not the error itself. This is a string comming back with the elasticsearch response payload