Exception: CardDB::ServerError
- Defined in:
- lib/carddb/errors.rb
Overview
Raised when the server returns an unexpected response
Instance Attribute Summary collapse
-
#status ⇒ Integer?
readonly
HTTP status code.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, status: nil, response: nil) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(message = nil, status: nil, response: nil) ⇒ ServerError
Returns a new instance of ServerError.
77 78 79 80 |
# File 'lib/carddb/errors.rb', line 77 def initialize( = nil, status: nil, response: nil) @status = status super(, response: response) end |
Instance Attribute Details
#status ⇒ Integer? (readonly)
Returns HTTP status code.
75 76 77 |
# File 'lib/carddb/errors.rb', line 75 def status @status end |