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(); } }