FirebasePhoneNumberVerificationException

The exception that Phone Number Verification fails with; the Android SDK's FirebasePhoneNumberVerificationException.

On Android it is the SDK class. It is an expect class rather than plain common code because its cause may be null, which the Android SDK's FirebaseException constructor does not accept from Kotlin.

Parameters

errorCode

why the operation failed, see errorCode.

message

the description of the failure.

cause

the exception that caused the failure. Without one, the exception gets a cause whose message is FirebasePnvStatusCodes.getMessage of errorCode, as the Android SDK gives it.

The exception that Phone Number Verification fails with; the Android SDK's FirebasePhoneNumberVerificationException.

On Android it is the SDK class. It is an expect class rather than plain common code because its cause may be null, which the Android SDK's FirebaseException constructor does not accept from Kotlin.

Parameters

errorCode

why the operation failed, see errorCode.

message

the description of the failure.

cause

the exception that caused the failure. Without one, the exception gets a cause whose message is FirebasePnvStatusCodes.getMessage of errorCode, as the Android SDK gives it.

actual class FirebasePhoneNumberVerificationException(val errorCode: Int, message: String, cause: Throwable?) : FirebaseException(source)

The exception that Phone Number Verification fails with. Its message is the one given, as on Android: the JS FirebaseException would append the cause's message to it.

Constructors

Link copied to clipboard
actual constructor(errorCode: Int, message: String, cause: Throwable?)
expect constructor(errorCode: Int, message: String, cause: Throwable?)
actual constructor(errorCode: Int, message: String, cause: Throwable?)

Types

Link copied to clipboard
actual object Companion

The Android SDK class's companion object, which has no public members.

expect object Companion

The Android SDK class's companion object, which has no public members.

actual object Companion

The Android SDK class's companion object, which has no public members.

Properties

cause
Link copied to clipboard
open val cause: Throwable?
expect open val cause: Throwable?
expect open val cause: Throwable?
Link copied to clipboard
actual val errorCode: Int

Why the operation failed: one of the codes of FirebasePnvStatusCodes, or one of the common status codes of Google Play services (com.google.android.gms.common.api.CommonStatusCodes, such as NETWORK_ERROR).

expect val errorCode: Int

Why the operation failed: one of the codes of FirebasePnvStatusCodes, or one of the common status codes of Google Play services (com.google.android.gms.common.api.CommonStatusCodes, such as NETWORK_ERROR).

actual val errorCode: Int

Why the operation failed: one of the codes of FirebasePnvStatusCodes, or one of the common status codes of Google Play services (com.google.android.gms.common.api.CommonStatusCodes, such as NETWORK_ERROR).

Link copied to clipboard
open val message: String?
expect open val message: String?
open override val message: String?