Exception: Qihu::FailuresError

Inherits:
Error
  • Object
show all
Defined in:
lib/qihu/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, error) ⇒ FailuresError

Returns a new instance of FailuresError.



18
19
20
21
22
23
# File 'lib/qihu/error.rb', line 18

def initialize(code, error)
  @code = code
  @error = error

  super "[#{@code}] #{@error}"
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



17
18
19
# File 'lib/qihu/error.rb', line 17

def code
  @code
end

#errorObject (readonly)

Returns the value of attribute error.



17
18
19
# File 'lib/qihu/error.rb', line 17

def error
  @error
end