Exception: Fql::Exception

Inherits:
Exception
  • Object
show all
Defined in:
lib/fql/exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_jsonObject (readonly)

Returns the value of attribute decoded_json.



3
4
5
# File 'lib/fql/exception.rb', line 3

def decoded_json
  @decoded_json
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/fql/exception.rb', line 3

def type
  @type
end