Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #5 from brain-geek/master
Browse files Browse the repository at this point in the history
Add possibility to get FB JSON answer from exception if error happened
  • Loading branch information
mcls committed Apr 15, 2013
2 parents be868e6 + 2d30186 commit 07ee1f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fql/exception.rb
@@ -1,10 +1,11 @@
class Fql::Exception < Exception

attr_reader :type
attr_reader :type, :decoded_json

def initialize(decoded_json)
error = decoded_json["error"]
@type = error["type"]
@decoded_json = decoded_json
super(error["message"])
end

Expand Down

0 comments on commit 07ee1f6

Please sign in to comment.