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.



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

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

Instance Attribute Details

#requestObject (readonly)

The HTTP request.



61
62
63
# File 'lib/vcr/errors.rb', line 61

def request
  @request
end