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.
70 71 72 73 |
# File 'lib/vcr/errors.rb', line 70 def initialize(request) @request = request super end |
Instance Attribute Details
#request ⇒ Object (readonly)
The HTTP request.
65 66 67 |
# File 'lib/vcr/errors.rb', line 65 def request @request end |