简体   繁体   English

如何显示来自FBgraph API的错误消息

[英]How to show Error message from FBgraph API

I'm using FBgraph API and now I want to print Error message in a single line like 我正在使用FBgraph API ,现在我想在一行中打印错误消息,例如

(#341) Feed action request limit reached (#341)已达到Feed操作请求限制

Below are the response from FBgraph API: 以下是FBgraph API的响应:

Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x6b273c0 {error=<CFBasicHash 0x6b26560 [0x1c91b48]>{type = mutable dict, count = 3,
entries =>
    2 : <CFString 0x6b26380 [0x1c91b48]>{contents = "type"} = <CFString 0x6b26990 [0x1c91b48]>{contents = "OAuthException"}
    3 : <CFString 0x6b26930 [0x1c91b48]>{contents = "message"} = <CFString 0x6b268d0 [0x1c91b48]>{contents = "(#341) Feed action request limit reached"}
    6 : <CFString 0x6b271d0 [0x1c91b48]>{contents = "code"} = 341
}
}

Please Help. 请帮忙。

I believe the request carries 3 different types of error message you can read. 我认为该请求包含3种您可以阅读的错误消息。 Error [Error localizedDescription] [Error description] 错误[错误localizedDescription] [错误描述]

One of these might give you the line you want. 其中之一可能会给您所需的线路。

Oh, there's also [error userinfo] 哦,还有[错误userinfo]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM