Exception: HTTY::NoLocationHeaderError
- Inherits:
-
StandardError
- Object
- StandardError
- HTTY::NoLocationHeaderError
- Defined in:
- lib/htty/no_location_header_error.rb
Overview
Indicates that the Location header was missing from HTTY::Request#response.
Instance Method Summary collapse
-
#initialize ⇒ NoLocationHeaderError
constructor
A new instance of NoLocationHeaderError.
Constructor Details
#initialize ⇒ NoLocationHeaderError
Returns a new instance of NoLocationHeaderError.
6 7 8 9 |
# File 'lib/htty/no_location_header_error.rb', line 6 def initialize super 'response does not have a ' + "'#{HTTY::Response::LOCATION_HEADER_NAME}' header" end |