A better try/catch solution for "Invalid Api secret" and other error

Ps: Sina Weibo(www.weibo.com) didn't give Api Secret before their WebApp release, so our WebApp give a "Invalid Api secret" error.

Signed-off-by: baitao.jibt <dreambt@gmail.com>