def raise_docker_error_exception(e_ary)
      e_ary.select { |x| x.is_a?(Hash) && x.key?('errorDetail') }[0]
      output = parse_streams(e_ary)
      error_msg = parse_error_detail(e_ary)
      return if error_msg.nil?
      raise DockerError, generate_error_message(error_msg, output)
    end
def raise_docker_error_exception(e_ary)
      e_ary.select { |x| x.is_a?(Hash) && x.key?('errorDetail') }[0]
      output = parse_streams(e_ary)
      error_msg = parse_error_detail(e_ary)
      return if error_msg.nil?
      raise DockerError, generate_error_message(error_msg, output)
    end
Raises the right {Dockerspec::DockerError} exception.

 Nothing is raised if the exception format is unknown.

 @param e_ary [Array<Hash>] The list of JSON messages already parsed.

 @return void

 @raise [Dockerspec::DockerError] When the exception format is known.

 @api private