Exception: ApiError::Http
- Inherits:
-
StandardError
- Object
- StandardError
- ApiError::Http
- Defined in:
- lib/api_error/http.rb
Overview
Base http exception
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ Http
constructor
A new instance of Http.
Constructor Details
#initialize(message, code) ⇒ Http
Returns a new instance of Http.
8 9 10 11 |
# File 'lib/api_error/http.rb', line 8 def initialize(, code) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/api_error/http.rb', line 6 def code @code end |