Exception: Geet::Shared::HttpError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Geet::Shared::HttpError
- Defined in:
- lib/geet/shared/http_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Integer.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(message, code) ⇒ HttpError
Returns a new instance of HttpError.
7 8 9 10 |
# File 'lib/geet/shared/http_error.rb', line 7 def initialize(, code) super() @code = code.to_i end |
Instance Attribute Details
#code ⇒ Object (readonly)
Integer.
5 6 7 |
# File 'lib/geet/shared/http_error.rb', line 5 def code @code end |