Exception: ComicVine::CVHTTPError
- Defined in:
- lib/comic_vine.rb
Overview
Raised when the server answers with a non-2xx HTTP status.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#status ⇒ Integer?
readonly
The HTTP status code, if known.
Instance Method Summary collapse
-
#initialize(message, status = nil) ⇒ CVHTTPError
constructor
A new instance of CVHTTPError.
Constructor Details
#initialize(message, status = nil) ⇒ CVHTTPError
Returns a new instance of CVHTTPError.
39 40 41 42 |
# File 'lib/comic_vine.rb', line 39 def initialize(, status = nil) @status = status super() end |
Instance Attribute Details
#status ⇒ Integer? (readonly)
Returns the HTTP status code, if known.
35 36 37 |
# File 'lib/comic_vine.rb', line 35 def status @status end |