Exception: VCR::Errors::UnhandledHTTPRequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/vcr/errors.rb

Overview

Note:

VCR will raise this to force you to do something about the HTTP request. The idea is that you want to handle every HTTP request in your test suite. The error message will give you suggestions for how to deal with the request.

Error raised when an HTTP request is made that VCR is unable to handle.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request) ⇒ UnhandledHTTPRequestError

Constructs the error.

Parameters:



70
71
72
73
# File 'lib/vcr/errors.rb', line 70

def initialize(request)
  @request = request
  super construct_message
end

Instance Attribute Details

#requestObject (readonly)

The HTTP request.



65
66
67
# File 'lib/vcr/errors.rb', line 65

def request
  @request
end