Exception: Geet::Shared::HttpError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Geet::Shared::HttpError
- Extended by:
- T::Sig
- Defined in:
- lib/geet/shared/http_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
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.
13 14 15 16 |
# File 'lib/geet/shared/http_error.rb', line 13 def initialize(, code) super() @code = T.let(code.to_i, Integer) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/geet/shared/http_error.rb', line 10 def code @code end |