Exception: VCR::Errors::UnhandledHTTPRequestError
- 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
-
#request ⇒ Object
readonly
The HTTP request.
Instance Method Summary collapse
-
#initialize(request) ⇒ UnhandledHTTPRequestError
constructor
Constructs the error.
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 end |
Instance Attribute Details
#request ⇒ Object (readonly)
The HTTP request.
61 62 63 |
# File 'lib/vcr/errors.rb', line 61 def request @request end |