Exception: Geet::Shared::HttpError

Inherits:
RuntimeError
  • Object
show all
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.



7
8
9
10
# File 'lib/geet/shared/http_error.rb', line 7

def initialize(message, code)
  super(message)
  @code = code.to_i
end

Instance Attribute Details

#codeObject (readonly)

Integer.



5
6
7
# File 'lib/geet/shared/http_error.rb', line 5

def code
  @code
end