Exception: FreebaseAPI::ServiceError

Inherits:
Error
  • Object
show all
Defined in:
lib/freebase_api/exceptions.rb

Instance Attribute Summary

Attributes inherited from Error

#code, #errors, #message

Instance Method Summary collapse

Methods inherited from Error

#to_s

Constructor Details

#initialize(params) ⇒ ServiceError

Returns a new instance of ServiceError.



18
19
20
21
# File 'lib/freebase_api/exceptions.rb', line 18

def initialize(params)
  super
  self.errors = params['errors']
end