Exception: Freebase::Api::MqlReadError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Freebase::Api::MqlReadError
- Defined in:
- lib/freebase/api.rb
Overview
A class for returing errors from the freebase api. For more infomation see the freebase documentation: www.freebase.com/view/help/guid/9202a8c04000641f800000000544e139#mqlreaderrors
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#freebase_message ⇒ Object
Returns the value of attribute freebase_message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ MqlReadError
constructor
A new instance of MqlReadError.
- #message ⇒ Object
Constructor Details
#initialize(code, message) ⇒ MqlReadError
Returns a new instance of MqlReadError.
7 8 9 10 |
# File 'lib/freebase/api.rb', line 7 def initialize(code,) self.code = code self. = end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
6 7 8 |
# File 'lib/freebase/api.rb', line 6 def code @code end |
#freebase_message ⇒ Object
Returns the value of attribute freebase_message.
6 7 8 |
# File 'lib/freebase/api.rb', line 6 def @freebase_message end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/freebase/api.rb', line 11 def "#{code}: #{}" end |