package androidx.credentials.exceptions.publickeycredential; import androidx.annotation.RestrictTo; 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.internal.FrameworkClassParsingException; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; @RestrictTo({RestrictTo.Scope.LIBRARY}) /* loaded from: classes.dex */ public final class DomExceptionUtils { public static final Companion Companion = new Companion(null); public static final String SEPARATOR = "/"; public static final class Companion { public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) { this(); } private Companion() { } @RestrictTo({RestrictTo.Scope.LIBRARY}) public final /* synthetic */ T generateDomException$credentials_release(String type, String prefix, String str, T t) { Intrinsics.checkNotNullParameter(type, "type"); Intrinsics.checkNotNullParameter(prefix, "prefix"); if (Intrinsics.areEqual(type, prefix + AbortError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_ABORT_ERROR)) { return (T) generateException(new AbortError(), str, t); } if (Intrinsics.areEqual(type, prefix + ConstraintError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_CONSTRAINT_ERROR)) { return (T) generateException(new ConstraintError(), str, t); } if (Intrinsics.areEqual(type, prefix + DataCloneError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DATA_CLONE_ERROR)) { return (T) generateException(new DataCloneError(), str, t); } if (Intrinsics.areEqual(type, prefix + DataError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DATA_ERROR)) { return (T) generateException(new DataError(), str, t); } if (Intrinsics.areEqual(type, prefix + EncodingError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_ENCODING_ERROR)) { return (T) generateException(new EncodingError(), str, t); } if (Intrinsics.areEqual(type, prefix + HierarchyRequestError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_HIERARCHY_REQUEST_ERROR)) { return (T) generateException(new HierarchyRequestError(), str, t); } if (Intrinsics.areEqual(type, prefix + InUseAttributeError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_IN_USE_ATTRIBUTE_ERROR)) { return (T) generateException(new InUseAttributeError(), str, t); } if (Intrinsics.areEqual(type, prefix + InvalidCharacterError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_INVALID_CHARACTER_ERROR)) { return (T) generateException(new InvalidCharacterError(), str, t); } if (Intrinsics.areEqual(type, prefix + InvalidModificationError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_INVALID_MODIFICATION_ERROR)) { return (T) generateException(new InvalidModificationError(), str, t); } if (Intrinsics.areEqual(type, prefix + InvalidNodeTypeError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_INVALID_NODE_TYPE_ERROR)) { return (T) generateException(new InvalidNodeTypeError(), str, t); } if (Intrinsics.areEqual(type, prefix + InvalidStateError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_INVALID_STATE_ERROR)) { return (T) generateException(new InvalidStateError(), str, t); } if (Intrinsics.areEqual(type, prefix + NamespaceError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NAMESPACE_ERROR)) { return (T) generateException(new NamespaceError(), str, t); } if (Intrinsics.areEqual(type, prefix + NetworkError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NETWORK_ERROR)) { return (T) generateException(new NetworkError(), str, t); } if (Intrinsics.areEqual(type, prefix + NoModificationAllowedError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NO_MODIFICATION_ALLOWED_ERROR)) { return (T) generateException(new NoModificationAllowedError(), str, t); } if (Intrinsics.areEqual(type, prefix + NotAllowedError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NOT_ALLOWED_ERROR)) { return (T) generateException(new NotAllowedError(), str, t); } if (Intrinsics.areEqual(type, prefix + NotFoundError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NOT_FOUND_ERROR)) { return (T) generateException(new NotFoundError(), str, t); } if (Intrinsics.areEqual(type, prefix + NotReadableError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NOT_READABLE_ERROR)) { return (T) generateException(new NotReadableError(), str, t); } if (Intrinsics.areEqual(type, prefix + NotSupportedError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_NOT_SUPPORTED_ERROR)) { return (T) generateException(new NotSupportedError(), str, t); } if (Intrinsics.areEqual(type, prefix + OperationError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_OPERATION_ERROR)) { return (T) generateException(new OperationError(), str, t); } if (Intrinsics.areEqual(type, prefix + OptOutError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_OPT_OUT_ERROR)) { return (T) generateException(new OptOutError(), str, t); } if (Intrinsics.areEqual(type, prefix + QuotaExceededError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_QUOTA_EXCEEDED_ERROR)) { return (T) generateException(new QuotaExceededError(), str, t); } if (Intrinsics.areEqual(type, prefix + ReadOnlyError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_READ_ONLY_ERROR)) { return (T) generateException(new ReadOnlyError(), str, t); } if (Intrinsics.areEqual(type, prefix + SecurityError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_SECURITY_ERROR)) { return (T) generateException(new SecurityError(), str, t); } if (Intrinsics.areEqual(type, prefix + SyntaxError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_SYNTAX_ERROR)) { return (T) generateException(new SyntaxError(), str, t); } if (Intrinsics.areEqual(type, prefix + TimeoutError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_TIMEOUT_ERROR)) { return (T) generateException(new TimeoutError(), str, t); } if (Intrinsics.areEqual(type, prefix + TransactionInactiveError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_TRANSACTION_INACTIVE_ERROR)) { return (T) generateException(new TransactionInactiveError(), str, t); } if (Intrinsics.areEqual(type, prefix + UnknownError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_UNKNOWN_ERROR)) { return (T) generateException(new UnknownError(), str, t); } if (Intrinsics.areEqual(type, prefix + VersionError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_VERSION_ERROR)) { return (T) generateException(new VersionError(), str, t); } if (Intrinsics.areEqual(type, prefix + WrongDocumentError.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_WRONG_DOCUMENT_ERROR)) { return (T) generateException(new WrongDocumentError(), str, t); } throw new FrameworkClassParsingException(); } /* JADX INFO: Access modifiers changed from: private */ public final T generateException(DomError domError, String str, T t) { if (t instanceof CreatePublicKeyCredentialDomException) { return (T) new CreatePublicKeyCredentialDomException(domError, str); } if (t instanceof GetPublicKeyCredentialDomException) { return (T) new GetPublicKeyCredentialDomException(domError, str); } throw new FrameworkClassParsingException(); } } }