Exception: Qihu::InvailAPIError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, error) ⇒ InvailAPIError

Returns a new instance of InvailAPIError.



8
9
10
11
12
13
# File 'lib/qihu/error.rb', line 8

def initialize(url, error)
  @url = url
  @error = error
  
  super "Invaild API: [#{@url}]"
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



6
7
8
# File 'lib/qihu/error.rb', line 6

def error
  @error
end

#urlObject (readonly)

Returns the value of attribute url.



6
7
8
# File 'lib/qihu/error.rb', line 6

def url
  @url
end