ASIHTTPRequest错误消息 - 初学者

sha*_*jem 0 iphone objective-c asihttprequest ios

我正在使用ASIHttpRequest.我需要知道这个错误信息的含义是什么?我怎么能解决它

请求错误<ASIHTTPRequest:0xbedc00> - 错误域= ASIHTTPRequestErrorDomain代码= 1"发生连接失败"UserInfo = 0x270230 {NSUnderlyingError = 0x250cf0"操作无法完成.(kCFErrorDomainCFNetwork错误2.)",NSLocalizedDescription = A连接发生故障}

还有更多错误消息; 以上是Error Domain=ASIHTTPRequestErrorDomain Code=1其他的Code=2,Code=3......最高Code=10.我需要这些也是什么?

编辑: 错误显示在if condition

 SBJsonParser *p = [SBJsonParser new];              
       NSDictionary *content = [pobjectWithString:[request responseString]];       
       if(!content){       
           NSLog(@" %@", p.errorTrace);
           return;
       }
Run Code Online (Sandbox Code Playgroud)

Ell*_*eal 8

此错误表示无法联系主机,最常见的原因是您没有网络连接.

以下是定义的错误代码 ASIHTTPRequest.h

typedef enum _ASINetworkErrorType {
    ASIConnectionFailureErrorType = 1,
    ASIRequestTimedOutErrorType = 2,
    ASIAuthenticationErrorType = 3,
    ASIRequestCancelledErrorType = 4,
    ASIUnableToCreateRequestErrorType = 5,
    ASIInternalErrorWhileBuildingRequestType  = 6,
    ASIInternalErrorWhileApplyingCredentialsType  = 7,
    ASIFileManagementError = 8,
    ASITooMuchRedirectionErrorType = 9,
    ASIUnhandledExceptionError = 10,
    ASICompressionError = 11

} ASINetworkErrorType;
Run Code Online (Sandbox Code Playgroud)