Exception: Typhoeus::Errors::NoStub

Inherits:
TyphoeusError show all
Defined in:
lib/typhoeus/errors/no_stub.rb

Overview

Raises when block connection is turned on and making a real request.

Since:

  • 0.5.0

Instance Method Summary collapse

Constructor Details

#initialize(request) ⇒ NoStub

Returns a new instance of NoStub.

Since:

  • 0.5.0



7
8
9
# File 'lib/typhoeus/errors/no_stub.rb', line 7

def initialize(request)
  super("The connection is blocked and no stub defined: #{request.url}")
end