> Documentation index: https://developer.android.com/reference/llms.txt

# AuthenticationResult.Error

Artifact: [androidx.biometric:biometric](https://developer.android.com/jetpack/androidx/releases/biometric.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/biometric/AuthenticationResult.kt+class:androidx.biometric.AuthenticationResult.Error) Added in [1.4.0-rc01](https://developer.android.com/jetpack/androidx/releases/biometric.md.txt#1.4.0-rc01)

*** ** * ** ***


```
class AuthenticationResult.Error : AuthenticationResult
```

<br />

*** ** * ** ***

A result when an error has been encountered and authentication has stopped.

| See also |
|---|---|
| `BiometricPrompt.AuthenticationError` |   |

## Summary

| ### Public constructors |
|---|
| `Error(errorCode: Int, errString: CharSequence)` |

| ### Public functions |
|---|---|
| `open AuthenticationResult.Error` | `error()` Returns a `Error` only if it's a `Error`, returns null otherwise. |

| ### Public properties |
|---|---|
| `CharSequence` | `errString` A human-readable string that describes the error. |
| `Int` | `errorCode` An integer ID associated with the error. |

### Inherited functions

From [androidx.biometric.AuthenticationResult](https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationResult.md.txt) `open AuthenticationResult.CustomFallbackSelected?` `customFallbackSelected()`

Returns a `CustomFallbackSelected` only if it's a `CustomFallbackSelected`, returns null otherwise.
`open Boolean` `isCustomFallbackSelected()`

Whether this `AuthenticationResult` is a `CustomFallbackSelected`.
`open Boolean` `isError()`

Whether this `AuthenticationResult` is an `Error`.
`open Boolean` `isSuccess()`

Whether this `AuthenticationResult` is a `Success`.
`open AuthenticationResult.Success?` `success()`

Returns a `Success` only if it's a `Success`, returns null otherwise.

## Public constructors

### Error

Added in [1.4.0-rc01](https://developer.android.com/jetpack/androidx/releases/biometric.md.txt#1.4.0-rc01)

```
Error(errorCode: Int, errString: CharSequence)
```

## Public functions

### error

```
open fun error(): AuthenticationResult.Error
```

Returns a `Error` only if it's a `Error`, returns null otherwise.

## Public properties

### errString

Added in [1.4.0-rc01](https://developer.android.com/jetpack/androidx/releases/biometric.md.txt#1.4.0-rc01)

```
val errString: CharSequence
```

A human-readable string that describes the error.

### errorCode

Added in [1.4.0-rc01](https://developer.android.com/jetpack/androidx/releases/biometric.md.txt#1.4.0-rc01)

```
val errorCode: Int
```

An integer ID associated with the error.