Class: SimpleFacebookConnect::Parser::Errors

Inherits:
SimpleFacebookConnect::Parser show all
Defined in:
lib/simple_facebook_connect/parser.rb

Constant Summary

Constants inherited from SimpleFacebookConnect::Parser

PARSERS

Class Method Summary collapse

Methods inherited from SimpleFacebookConnect::Parser

anonymous_field_from, array_of, array_of_hashes, array_of_text_values, booleanize, element, hash_or_value_for, hashinate, parse

Class Method Details

.process(data) ⇒ Object



142
143
144
145
146
147
148
# File 'lib/simple_facebook_connect/parser.rb', line 142

def self.process(data)
  response_element = element('error_response', data) rescue nil
  if response_element
    hash = hashinate(response_element)
    raise FacebookApiError, hash['error_msg']
  end
end