Handling all sorts of FB errors

5 views
Skip to first unread message

MrBlankman

unread,
Mar 5, 2011, 10:48:44 AM3/5/11
to mini_fb
I understand that best practice is that we should try to catch FB
errors with FaceBookError in the catch block, but will this catch ALL
errors, including rate limiting and timeout errors?

If not, how do we catch those?

Travis Reeder

unread,
Mar 5, 2011, 4:57:46 PM3/5/11
to min...@googlegroups.com
I'm not sure if it would catch every possible error and be thrown as FaceBookError, but to catch all errors, be sure to rescue StandardError, eg:

rescue => ex




--
You received this message because you are subscribed to the Google Groups "mini_fb" group.
To post to this group, send email to min...@googlegroups.com.
To unsubscribe from this group, send email to mini_fb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mini_fb?hl=en.


MrBlankman

unread,
Mar 6, 2011, 4:37:08 PM3/6/11
to mini_fb
Great. I'll let hoptoad catch those and use MiniFB for the known
Facebook stuff.
Reply all
Reply to author
Forward
0 new messages