package androidx.credentials.exceptions.publickeycredential; import androidx.annotation.RestrictTo; import androidx.credentials.exceptions.CreateCredentialCustomException; import androidx.credentials.exceptions.CreateCredentialException; import androidx.credentials.exceptions.domerrors.AbortError; import androidx.credentials.exceptions.domerrors.ConstraintError; import androidx.credentials.exceptions.domerrors.DataCloneError; import androidx.credentials.exceptions.domerrors.DataError; import androidx.credentials.exceptions.domerrors.DomError; import androidx.credentials.exceptions.domerrors.EncodingError; import androidx.credentials.exceptions.domerrors.HierarchyRequestError; import androidx.credentials.exceptions.domerrors.InUseAttributeError; import androidx.credentials.exceptions.domerrors.InvalidCharacterError; import androidx.credentials.exceptions.domerrors.InvalidModificationError; import androidx.credentials.exceptions.domerrors.InvalidNodeTypeError; import androidx.credentials.exceptions.domerrors.InvalidStateError; import androidx.credentials.exceptions.domerrors.NamespaceError; import androidx.credentials.exceptions.domerrors.NetworkError; import androidx.credentials.exceptions.domerrors.NoModificationAllowedError; import androidx.credentials.exceptions.domerrors.NotAllowedError; import androidx.credentials.exceptions.domerrors.NotFoundError; import androidx.credentials.exceptions.domerrors.NotReadableError; import androidx.credentials.exceptions.domerrors.NotSupportedError; import androidx.credentials.exceptions.domerrors.OperationError; import androidx.credentials.exceptions.domerrors.OptOutError; import androidx.credentials.exceptions.domerrors.QuotaExceededError; import androidx.credentials.exceptions.domerrors.ReadOnlyError; import androidx.credentials.exceptions.domerrors.SecurityError; import androidx.credentials.exceptions.domerrors.SyntaxError; import androidx.credentials.exceptions.domerrors.TimeoutError; import androidx.credentials.exceptions.domerrors.TransactionInactiveError; import androidx.credentials.exceptions.domerrors.UnknownError; import androidx.credentials.exceptions.domerrors.VersionError; import androidx.credentials.exceptions.domerrors.WrongDocumentError; import androidx.credentials.exceptions.publickeycredential.DomExceptionUtils; import androidx.credentials.internal.FrameworkClassParsingException; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.SourceDebugExtension; /* loaded from: classes.dex */ public final class CreatePublicKeyCredentialDomException extends CreatePublicKeyCredentialException { public static final Companion Companion = new Companion(null); public static final String TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION = "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION"; private final DomError domError; /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ /* JADX WARN: Multi-variable type inference failed */ public CreatePublicKeyCredentialDomException(DomError domError) { this(domError, null, 2, 0 == true ? 1 : 0); Intrinsics.checkNotNullParameter(domError, "domError"); } @RestrictTo({RestrictTo.Scope.LIBRARY}) public static final CreateCredentialException createFrom(String str, String str2) { return Companion.createFrom(str, str2); } public final DomError getDomError() { return this.domError; } public /* synthetic */ CreatePublicKeyCredentialDomException(DomError domError, CharSequence charSequence, int i, DefaultConstructorMarker defaultConstructorMarker) { this(domError, (i & 2) != 0 ? null : charSequence); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public CreatePublicKeyCredentialDomException(DomError domError, CharSequence charSequence) { super("androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + domError.getType(), charSequence); Intrinsics.checkNotNullParameter(domError, "domError"); this.domError = domError; } @SourceDebugExtension({"SMAP\nCreatePublicKeyCredentialDomException.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CreatePublicKeyCredentialDomException.kt\nandroidx/credentials/exceptions/publickeycredential/CreatePublicKeyCredentialDomException$Companion\n+ 2 DomExceptionUtils.kt\nandroidx/credentials/exceptions/publickeycredential/DomExceptionUtils$Companion\n*L\n1#1,67:1\n67#2,75:68\n*S KotlinDebug\n*F\n+ 1 CreatePublicKeyCredentialDomException.kt\nandroidx/credentials/exceptions/publickeycredential/CreatePublicKeyCredentialDomException$Companion\n*L\n53#1:68,75\n*E\n"}) public static final class Companion { public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) { this(); } private Companion() { } /* JADX WARN: Multi-variable type inference failed */ @RestrictTo({RestrictTo.Scope.LIBRARY}) public final CreateCredentialException createFrom(String type, String str) { Object generateException; Intrinsics.checkNotNullParameter(type, "type"); try { DomExceptionUtils.Companion companion = DomExceptionUtils.Companion; CreatePublicKeyCredentialDomException createPublicKeyCredentialDomException = new CreatePublicKeyCredentialDomException(new UnknownError(), null, 2, 0 == true ? 1 : 0); if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + AbortError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_ABORT_ERROR)) { generateException = companion.generateException(new AbortError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + ConstraintError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_CONSTRAINT_ERROR)) { generateException = companion.generateException(new ConstraintError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + DataCloneError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DATA_CLONE_ERROR)) { generateException = companion.generateException(new DataCloneError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + DataError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DATA_ERROR)) { generateException = companion.generateException(new DataError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + EncodingError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_ENCODING_ERROR)) { generateException = companion.generateException(new EncodingError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + HierarchyRequestError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_HIERARCHY_REQUEST_ERROR)) { generateException = companion.generateException(new HierarchyRequestError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + InUseAttributeError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_IN_USE_ATTRIBUTE_ERROR)) { generateException = companion.generateException(new InUseAttributeError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + InvalidCharacterError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_INVALID_CHARACTER_ERROR)) { generateException = companion.generateException(new InvalidCharacterError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + InvalidModificationError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_INVALID_MODIFICATION_ERROR)) { generateException = companion.generateException(new InvalidModificationError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + InvalidNodeTypeError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_INVALID_NODE_TYPE_ERROR)) { generateException = companion.generateException(new InvalidNodeTypeError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + InvalidStateError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_INVALID_STATE_ERROR)) { generateException = companion.generateException(new InvalidStateError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NamespaceError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NAMESPACE_ERROR)) { generateException = companion.generateException(new NamespaceError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NetworkError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NETWORK_ERROR)) { generateException = companion.generateException(new NetworkError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NoModificationAllowedError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NO_MODIFICATION_ALLOWED_ERROR)) { generateException = companion.generateException(new NoModificationAllowedError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NotAllowedError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NOT_ALLOWED_ERROR)) { generateException = companion.generateException(new NotAllowedError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NotFoundError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NOT_FOUND_ERROR)) { generateException = companion.generateException(new NotFoundError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NotReadableError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NOT_READABLE_ERROR)) { generateException = companion.generateException(new NotReadableError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + NotSupportedError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NOT_SUPPORTED_ERROR)) { generateException = companion.generateException(new NotSupportedError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + OperationError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_OPERATION_ERROR)) { generateException = companion.generateException(new OperationError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + OptOutError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_OPT_OUT_ERROR)) { generateException = companion.generateException(new OptOutError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + QuotaExceededError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_QUOTA_EXCEEDED_ERROR)) { generateException = companion.generateException(new QuotaExceededError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + ReadOnlyError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_READ_ONLY_ERROR)) { generateException = companion.generateException(new ReadOnlyError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + SecurityError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_SECURITY_ERROR)) { generateException = companion.generateException(new SecurityError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + SyntaxError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_SYNTAX_ERROR)) { generateException = companion.generateException(new SyntaxError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + TimeoutError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_TIMEOUT_ERROR)) { generateException = companion.generateException(new TimeoutError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + TransactionInactiveError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_TRANSACTION_INACTIVE_ERROR)) { generateException = companion.generateException(new TransactionInactiveError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + UnknownError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_UNKNOWN_ERROR)) { generateException = companion.generateException(new UnknownError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + VersionError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_VERSION_ERROR)) { generateException = companion.generateException(new VersionError(), str, createPublicKeyCredentialDomException); } else { if (Intrinsics.areEqual(type, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION/" + WrongDocumentError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_WRONG_DOCUMENT_ERROR)) { generateException = companion.generateException(new WrongDocumentError(), str, createPublicKeyCredentialDomException); } else { throw new FrameworkClassParsingException(); } } } } } } } } } } } } } } } } } } } } } } } } } } } } } return (CreateCredentialException) generateException; } catch (FrameworkClassParsingException unused) { return new CreateCredentialCustomException(type, str); } } } }