package com.fyber.inneractive.sdk.external; import com.fyber.inneractive.sdk.flow.g; import com.fyber.inneractive.sdk.network.q; import java.util.ArrayList; /* loaded from: classes2.dex */ public class InneractiveInfrastructureError extends InneractiveError { public final InneractiveErrorCode a; public final g b; public final Throwable c; public Exception d; public final ArrayList e; public InneractiveInfrastructureError(InneractiveErrorCode inneractiveErrorCode, g gVar) { this(inneractiveErrorCode, gVar, null); } public void addReportedError(q qVar) { this.e.add(qVar); } @Override // com.fyber.inneractive.sdk.external.InneractiveError public String description() { StringBuilder sb = new StringBuilder(); sb.append(this.a); if (this.c != null) { sb.append(" : "); sb.append(this.c); } return sb.toString(); } public Throwable getCause() { Exception exc = this.d; return exc == null ? this.c : exc; } public InneractiveErrorCode getErrorCode() { return this.a; } public g getFyberMarketplaceAdLoadFailureReason() { return this.b; } public boolean isErrorAlreadyReported(q qVar) { return this.e.contains(qVar); } public void setCause(Exception exc) { this.d = exc; } public InneractiveInfrastructureError(InneractiveErrorCode inneractiveErrorCode, g gVar, Throwable th) { this.e = new ArrayList(); this.a = inneractiveErrorCode; this.b = gVar; this.c = th; } }