Exception: Qihu::FailuresError
- Defined in:
- lib/qihu/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(code, error) ⇒ FailuresError
constructor
A new instance of FailuresError.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
17 18 19 |
# File 'lib/qihu/error.rb', line 17 def code @code end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
17 18 19 |
# File 'lib/qihu/error.rb', line 17 def error @error end |