package org.ksoap2.repackaged; import com.google.android.gms.analytics.ecommerce.ProductAction; import java.io.IOException; import o.C15334gnj; import o.InterfaceC15578gue; import org.xmlpull.repackaged.v1.XmlPullParserException; /* loaded from: classes6.dex */ public class SoapFault extends IOException { public String a; public C15334gnj b; public int c; public String d; public String e; public SoapFault() { this.c = 110; } public SoapFault(int i) { this.c = i; } public void d(InterfaceC15578gue interfaceC15578gue) throws IOException, XmlPullParserException { interfaceC15578gue.d(2, "http://schemas.xmlsoap.org/soap/envelope/", "Fault"); while (interfaceC15578gue.n() == 2) { String h = interfaceC15578gue.h(); if (h.equals(ProductAction.ACTION_DETAIL)) { C15334gnj c15334gnj = new C15334gnj(); this.b = c15334gnj; c15334gnj.a(interfaceC15578gue); if (interfaceC15578gue.i().equals("http://schemas.xmlsoap.org/soap/envelope/") && interfaceC15578gue.h().equals("Fault")) { break; } } else { if (h.equals("faultcode")) { this.e = interfaceC15578gue.l(); } else if (h.equals("faultstring")) { this.d = interfaceC15578gue.l(); } else if (h.equals("faultactor")) { this.a = interfaceC15578gue.l(); } else { throw new RuntimeException("unexpected tag:".concat(String.valueOf(h))); } interfaceC15578gue.d(3, null, h); } } interfaceC15578gue.d(3, "http://schemas.xmlsoap.org/soap/envelope/", "Fault"); interfaceC15578gue.n(); } @Override // java.lang.Throwable public String toString() { StringBuilder sb = new StringBuilder("SoapFault - faultcode: '"); sb.append(this.e); sb.append("' faultstring: '"); sb.append(this.d); sb.append("' faultactor: '"); sb.append(this.a); sb.append("' detail: "); sb.append(this.b); return sb.toString(); } @Override // java.lang.Throwable public String getMessage() { return this.d; } }