Exception: Daredevil::Errors::UnknownHTTPStatus
- Inherits:
-
StandardError
- Object
- StandardError
- Daredevil::Errors::UnknownHTTPStatus
- Includes:
- Utils::RackHelper
- Defined in:
- lib/daredevil/errors.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status) ⇒ UnknownHTTPStatus
constructor
A new instance of UnknownHTTPStatus.
- #message ⇒ Object
Constructor Details
#initialize(status) ⇒ UnknownHTTPStatus
Returns a new instance of UnknownHTTPStatus.
10 11 12 13 |
# File 'lib/daredevil/errors.rb', line 10 def initialize(status) @status = status super() end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/daredevil/errors.rb', line 8 def status @status end |
Instance Method Details
#message ⇒ Object
15 16 17 18 |
# File 'lib/daredevil/errors.rb', line 15 def "Unknown HTTP status code '#{status}'.\n"\ "Available status codes and symbols are: #{statuses}" end |