def wrap_faraday_error(error, method, path)
      error_name  = error.class.name.split("::").last
      error_class = Elastomer::Client.const_get(error_name) rescue Elastomer::Client::Error
      error_class.new(error, method.upcase, path)
    end
def wrap_faraday_error(error, method, path)
      error_name  = error.class.name.split("::").last
      error_class = Elastomer::Client.const_get(error_name) rescue Elastomer::Client::Error
      error_class.new(error, method.upcase, path)
    end
rubocop:enable Metrics/MethodLength
 Internal: Returns a new Elastomer::Client error that wraps the given
 Faraday error. A generic Error is returned if we cannot wrap the given
 Faraday error.

   error  - The Faraday error
   method - The request method
   path   - The request path