File: no_stub.rb

package info (click to toggle)
ruby-typhoeus 1.4.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 636 kB
  • sloc: ruby: 4,381; makefile: 6
file content (12 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
module Typhoeus
  module Errors

    # Raises when block connection is turned on
    # and making a real request.
    class NoStub < TyphoeusError
      def initialize(request)
        super("The connection is blocked and no stub defined: #{request.url}")
      end
    end
  end
end