# FirebasePnvStatusCodes


```
public static class FirebasePnvStatusCodes extends CommonStatusCodes
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.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/android/com/google/firebase/pnv/FirebasePnvStatusCodes) |

*** ** * ** ***

Status codes for Firebase PNV.

## Summary

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

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull.html https://firebase.google.com/docs/reference/android/com/google/firebase/pnv/FirebasePnvStatusCodes` | `https://firebase.google.com/docs/reference/android/com/google/firebase/pnv/FirebasePnvStatusCodes#INSTANCE()` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://firebase.google.com/docs/reference/android/com/google/firebase/pnv/FirebasePnvStatusCodes#getMessage(kotlin.Int)(int errorCode)` Returns the default message for the given error code. |

## Constants

### ACTIVITY_CONTEXT_REQUIRED

```
public static final int ACTIVITY_CONTEXT_REQUIRED = 55509
```

The context provided is not an Activity context

### CARRIER_NOT_SUPPORTED

```
public static final int CARRIER_NOT_SUPPORTED = 55501
```

The carrier is not supported

### CREDENTIAL_MANAGER_ERROR

```
public static final int CREDENTIAL_MANAGER_ERROR = 55506
```

Credential Manager threw an error

### INTEGRITY_CHECK_FAILED

```
public static final int INTEGRITY_CHECK_FAILED = 55503
```

Integrity check failed

### INVALID_DIGITAL_CREDENTIAL_RESPONSE

```
public static final int INVALID_DIGITAL_CREDENTIAL_RESPONSE = 55502
```

The digital credential response is invalid

### INVALID_TEST_NUMBER_ID

```
public static final int INVALID_TEST_NUMBER_ID = 55507
```

The test number ID is invalid or expired or not found

### PREFLIGHT_CHECK_FAILED

```
public static final int PREFLIGHT_CHECK_FAILED = 55504
```

Preflight check failed

### TEST_SESSION_ALREADY_ENABLED

```
public static final int TEST_SESSION_ALREADY_ENABLED = 55508
```

The SDK is already in test session

### UNSUPPORTED_OPERATION

```
public static final int UNSUPPORTED_OPERATION = 55505
```

The API is not supported

## Public fields

### INSTANCE

```
public static @NonNull FirebasePnvStatusCodes INSTANCE
```

## Public methods

### getMessage

```
public final @NonNull String getMessage(int errorCode)
```

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 |
|---|---|
| `int errorCode` | The error code to get the message for. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` | The message for the given error code. |