package com.google.firebase.installations;

import androidx.annotation.NonNull;
import com.google.android.gms.common.internal.w;
import com.google.firebase.FirebaseException;

/* JADX INFO: loaded from: classes2.dex */
public class FirebaseInstallationsException extends FirebaseException {

    @NonNull
    private final Status status;

    /* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
    /* JADX WARN: Unknown enum class pattern. Please report as an issue! */
    public static final class Status {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        public static final Status f24087a;

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public static final Status f24088b;

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        public static final Status f24089c;

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        public static final /* synthetic */ Status[] f24090d;

        static {
            Status status = new Status("BAD_CONFIG", 0);
            f24087a = status;
            Status status2 = new Status("UNAVAILABLE", 1);
            f24088b = status2;
            Status status3 = new Status("TOO_MANY_REQUESTS", 2);
            f24089c = status3;
            f24090d = new Status[]{status, status2, status3};
        }

        public static Status valueOf(String str) {
            return (Status) Enum.valueOf(Status.class, str);
        }

        public static Status[] values() {
            return (Status[]) f24090d.clone();
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public FirebaseInstallationsException(String str, Status status) {
        super(str);
        w.checkNotEmpty(str, "Detail message must not be empty");
        this.status = status;
    }

    public FirebaseInstallationsException() {
        this.status = Status.f24087a;
    }
}
