# FirebasePnvStatusCodes


```
object FirebasePnvStatusCodes : CommonStatusCodes
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [com.google.android.gms.common.api.CommonStatusCodes](https://developers.google.com/android/reference/com/google/android/gms/common/api/CommonStatusCodes.html) ||
|   | ↳ | [com.google.firebase.pnv.FirebasePnvStatusCodes](https://firebase.google.com/docs/reference/kotlin/com/google/firebase/pnv/FirebasePnvStatusCodes) |

*** ** * ** ***

Status codes for Firebase PNV.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/pnv/FirebasePnvStatusCodes#ACTIVITY_CONTEXT_REQUIRED() = 55509` The context provided is not an Activity context |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/pnv/FirebasePnvStatusCodes#CARRIER_NOT_SUPPORTED() = 55501` The carrier is not supported |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/pnv/FirebasePnvStatusCodes#CREDENTIAL_MANAGER_ERROR() = 55506` Credential Manager threw an error |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/pnv/FirebasePnvStatusCodes#INTEGRITY_CHECK_FAILED() = 55503` Integrity check failed |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/pnv/FirebasePnvStatusCodes#INVALID_DIGITAL_CREDENTIAL_RESPONSE() = 55502` The digital credential response is invalid |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/pnv/FirebasePnvStatusCodes#INVALID_TEST_NUMBER_ID() = 55507` The test number ID is invalid or expired or not found |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/pnv/FirebasePnvStatusCodes#PREFLIGHT_CHECK_FAILED() = 55504` Preflight check failed |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/pnv/FirebasePnvStatusCodes#TEST_SESSION_ALREADY_ENABLED() = 55508` The SDK is already in test session |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/pnv/FirebasePnvStatusCodes#UNSUPPORTED_OPERATION() = 55505` The API is not supported |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/pnv/FirebasePnvStatusCodes#getMessage(kotlin.Int)(errorCode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Returns the default message for the given error code. |

## Constants

### ACTIVITY_CONTEXT_REQUIRED

```
const val ACTIVITY_CONTEXT_REQUIRED = 55509: Int
```

The context provided is not an Activity context

### CARRIER_NOT_SUPPORTED

```
const val CARRIER_NOT_SUPPORTED = 55501: Int
```

The carrier is not supported

### CREDENTIAL_MANAGER_ERROR

```
const val CREDENTIAL_MANAGER_ERROR = 55506: Int
```

Credential Manager threw an error

### INTEGRITY_CHECK_FAILED

```
const val INTEGRITY_CHECK_FAILED = 55503: Int
```

Integrity check failed

### INVALID_DIGITAL_CREDENTIAL_RESPONSE

```
const val INVALID_DIGITAL_CREDENTIAL_RESPONSE = 55502: Int
```

The digital credential response is invalid

### INVALID_TEST_NUMBER_ID

```
const val INVALID_TEST_NUMBER_ID = 55507: Int
```

The test number ID is invalid or expired or not found

### PREFLIGHT_CHECK_FAILED

```
const val PREFLIGHT_CHECK_FAILED = 55504: Int
```

Preflight check failed

### TEST_SESSION_ALREADY_ENABLED

```
const val TEST_SESSION_ALREADY_ENABLED = 55508: Int
```

The SDK is already in test session

### UNSUPPORTED_OPERATION

```
const val UNSUPPORTED_OPERATION = 55505: Int
```

The API is not supported

## Public functions

### getMessage

```
fun getMessage(errorCode: Int): String
```

Returns the default message for the given error code. These messages only get used if there is not more detailed error message information at the time that the exception is created.

| Parameters |
|---|---|
| `errorCode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | The error code to get the message for. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The message for the given error code. |