Exception: Stella::HTTPError
- Inherits:
-
StellaError
- Object
- RuntimeError
- StellaError
- Stella::HTTPError
- Defined in:
- lib/stella.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status) ⇒ HTTPError
constructor
A new instance of HTTPError.
- #message ⇒ Object
Constructor Details
#initialize(status) ⇒ HTTPError
Returns a new instance of HTTPError.
98 99 100 |
# File 'lib/stella.rb', line 98 def initialize(status) @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
97 98 99 |
# File 'lib/stella.rb', line 97 def status @status end |
Instance Method Details
#message ⇒ Object
101 102 103 |
# File 'lib/stella.rb', line 101 def "#{status} error" end |