package org.ksoap2.repackaged; import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper; import java.io.IOException; import o.C15332gnh; import o.C15334gnj; import o.InterfaceC15578gue; import org.xmlpull.repackaged.v1.XmlPullParserException; /* loaded from: classes6.dex */ public class SoapFault12 extends SoapFault { private C15334gnj f; private C15334gnj g; private C15334gnj h; private C15334gnj i; private C15334gnj j; public SoapFault12() { this.c = 120; } public SoapFault12(int i) { this.c = i; } @Override // org.ksoap2.repackaged.SoapFault, java.lang.Throwable public String getMessage() { C15332gnh e = this.j.e("http://www.w3.org/2003/05/soap-envelope", "Text"); if (e.c()) { return (String) e.a.elementAt(0); } return null; } @Override // org.ksoap2.repackaged.SoapFault, java.lang.Throwable public String toString() { C15332gnh e = this.j.e("http://www.w3.org/2003/05/soap-envelope", "Text"); String str = e.c() ? (String) e.a.elementAt(0) : null; C15332gnh e2 = this.h.e("http://www.w3.org/2003/05/soap-envelope", KtaJsonExactionHelper.VALUE); String str2 = e2.c() ? (String) e2.a.elementAt(0) : null; StringBuilder sb = new StringBuilder("Code: "); sb.append(str2); sb.append(", Reason: "); sb.append(str); return sb.toString(); } @Override // org.ksoap2.repackaged.SoapFault public final void d(InterfaceC15578gue interfaceC15578gue) throws IOException, XmlPullParserException { interfaceC15578gue.d(2, "http://www.w3.org/2003/05/soap-envelope", "Fault"); while (interfaceC15578gue.n() == 2) { String h = interfaceC15578gue.h(); String i = interfaceC15578gue.i(); interfaceC15578gue.n(); if (h.toLowerCase().equals("Code".toLowerCase())) { C15334gnj c15334gnj = new C15334gnj(); this.h = c15334gnj; c15334gnj.a(interfaceC15578gue); } else if (h.toLowerCase().equals("Reason".toLowerCase())) { C15334gnj c15334gnj2 = new C15334gnj(); this.j = c15334gnj2; c15334gnj2.a(interfaceC15578gue); } else if (h.toLowerCase().equals("Node".toLowerCase())) { C15334gnj c15334gnj3 = new C15334gnj(); this.i = c15334gnj3; c15334gnj3.a(interfaceC15578gue); } else if (h.toLowerCase().equals("Role".toLowerCase())) { C15334gnj c15334gnj4 = new C15334gnj(); this.g = c15334gnj4; c15334gnj4.a(interfaceC15578gue); } else if (h.toLowerCase().equals("Detail".toLowerCase())) { C15334gnj c15334gnj5 = new C15334gnj(); this.f = c15334gnj5; c15334gnj5.a(interfaceC15578gue); } else { throw new RuntimeException("unexpected tag:".concat(String.valueOf(h))); } interfaceC15578gue.d(3, i, h); } interfaceC15578gue.d(3, "http://www.w3.org/2003/05/soap-envelope", "Fault"); interfaceC15578gue.n(); C15332gnh e = this.h.e("http://www.w3.org/2003/05/soap-envelope", KtaJsonExactionHelper.VALUE); this.e = e.c() ? (String) e.a.elementAt(0) : null; C15332gnh e2 = this.j.e("http://www.w3.org/2003/05/soap-envelope", "Text"); this.d = e2.c() ? (String) e2.a.elementAt(0) : null; this.b = this.f; this.a = null; } }