Exception: EOAT::Exception::HTTPError
- Defined in:
- lib/eoat/exception.rb
Overview
It is used when the HTTP response code different from 200, 404 or 0.
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, headers) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(status, headers) ⇒ HTTPError
16 17 18 19 |
# File 'lib/eoat/exception.rb', line 16 def initialize(status, headers) @status = status @headers = headers end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
12 13 14 |
# File 'lib/eoat/exception.rb', line 12 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
12 13 14 |
# File 'lib/eoat/exception.rb', line 12 def status @status end |