Can you define a custom exception instead? Like `UnexpectedElasticSearchError`.