package com.google.android.play.core.integrity;

import com.google.android.gms.common.api.ApiException;
import com.google.android.gms.common.api.Status;
import java.util.Locale;

/* JADX INFO: loaded from: classes3.dex */
public class StandardIntegrityException extends ApiException {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private final Throwable f13580a;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public StandardIntegrityException(int i6, Throwable th) {
        super(new Status(i6, "Standard Integrity API error (" + i6 + "): " + com.google.android.play.core.integrity.model.b.a(i6) + "."));
        Locale locale = Locale.ROOT;
        if (i6 == 0) {
            throw new IllegalArgumentException("ErrorCode should not be 0.");
        }
        this.f13580a = th;
    }

    @Override // java.lang.Throwable
    public final synchronized Throwable getCause() {
        return this.f13580a;
    }

    public int getErrorCode() {
        return super.getStatusCode();
    }
}
