Exception: Fql::Exception
- Inherits:
-
Exception
- Object
- Exception
- Fql::Exception
- Defined in:
- lib/fql/exception.rb
Instance Attribute Summary collapse
-
#decoded_json ⇒ Object
readonly
Returns the value of attribute decoded_json.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(decoded_json) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(decoded_json) ⇒ Exception
Returns a new instance of Exception.
5 6 7 8 9 10 |
# File 'lib/fql/exception.rb', line 5 def initialize(decoded_json) error = decoded_json["error"] @type = error["type"] @decoded_json = decoded_json super(error["message"]) end |
Instance Attribute Details
#decoded_json ⇒ Object (readonly)
Returns the value of attribute decoded_json.
3 4 5 |
# File 'lib/fql/exception.rb', line 3 def decoded_json @decoded_json end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/fql/exception.rb', line 3 def type @type end |