Exception: Flamingo::Wader::HttpStatusError

Inherits:
WaderError
  • Object
show all
Defined in:
lib/flamingo/wader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code) ⇒ HttpStatusError

Returns a new instance of HttpStatusError.



11
12
13
14
# File 'lib/flamingo/wader.rb', line 11

def initialize(message,code)
  super(message)  
  self.code = code
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



9
10
11
# File 'lib/flamingo/wader.rb', line 9

def code
  @code
end