jimu-decompiled/sources/com/facebook/FacebookGraphResponseException.java
2025-05-13 19:24:51 +02:00

41 lines
1.3 KiB
Java

package com.facebook;
/* loaded from: classes.dex */
public class FacebookGraphResponseException extends FacebookException {
private final GraphResponse graphResponse;
public FacebookGraphResponseException(GraphResponse graphResponse, String str) {
super(str);
this.graphResponse = graphResponse;
}
public final GraphResponse getGraphResponse() {
return this.graphResponse;
}
@Override // com.facebook.FacebookException, java.lang.Throwable
public final String toString() {
GraphResponse graphResponse = this.graphResponse;
FacebookRequestError a = graphResponse != null ? graphResponse.a() : null;
StringBuilder sb = new StringBuilder();
sb.append("{FacebookGraphResponseException: ");
String message = getMessage();
if (message != null) {
sb.append(message);
sb.append(" ");
}
if (a != null) {
sb.append("httpResponseCode: ");
sb.append(a.getRequestStatusCode());
sb.append(", facebookErrorCode: ");
sb.append(a.getErrorCode());
sb.append(", facebookErrorType: ");
sb.append(a.getErrorType());
sb.append(", message: ");
sb.append(a.getErrorMessage());
sb.append("}");
}
return sb.toString();
}
}