Exception: Geet::Shared::HttpError

Inherits:
RuntimeError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/geet/shared/http_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, code)
  super(message)
  @code = T.let(code.to_i, Integer)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/geet/shared/http_error.rb', line 10

def code
  @code
end