File: multi_timeout.rb

package info (click to toggle)
ruby-ethon 0.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 396 kB
  • sloc: ruby: 2,108; sh: 9; makefile: 8
file content (13 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true
module Ethon
  module Errors

    # Raised when multi_timeout failed.
    class MultiTimeout < EthonError
      def initialize(code)
        super("An error occured getting the timeout: #{code}")
        # "An error occured getting the timeout: #{code}: #{Curl.multi_strerror(code)}"
      end
    end
  end
end