捕获FaceBook,Twitter API引发的异常 [英] Catching Exception Thrown By FaceBook ,Twitter API's

查看:85
本文介绍了捕获FaceBook,Twitter API引发的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Web应用程序中使用了社交共享API,例如Face Book API,Twitter API.
我正在尝试根据API修复我的项目流程.
假设
如果facebook API抛出任何异常,我的流程就会被破坏.

因此,我需要确切的异常代码(错误代码)来捕获它们,并按照facebook api设置项目的流程抛出异常抛出异常:

I am using Social share API''s Like face Book API,Twitter API in my web application.
I am trying to fix the flow of my Project based on the API''s.
suppose
If any exception thrown by facebook API my Flow destructed.

So i need the exact exception codes (error codes) to catch them and set the flow of the project as per the facebook api Exception thrown

推荐答案

如果您捕获到异常,那么它将捕获,您不需要知道异常类型.如果问题比这更复杂,也许您需要发布一些代码.
If you catch an Exception, then it will catch, you don''t need to know the exception type. Perhaps you need to post some code, if the problem is more complex than that.


这篇关于捕获FaceBook,Twitter API引发的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆