diff --git a/lib/fql/exception.rb b/lib/fql/exception.rb index b231c59..95146a7 100644 --- a/lib/fql/exception.rb +++ b/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