# ExecuteAppFunctionResponse.Error

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

*** ** * ** ***


```
public final class ExecuteAppFunctionResponse.Error implements ExecuteAppFunctionResponse
```

<br />

*** ** * ** ***

Represents a failed execution of an app function.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/appfunctions/ExecuteAppFunctionResponse.Error#Error(androidx.appfunctions.AppFunctionException)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appfunctions/AppFunctionException error)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appfunctions/AppFunctionException` | `https://developer.android.com/reference/androidx/appfunctions/ExecuteAppFunctionResponse.Error#getError()()` The `https://developer.android.com/reference/androidx/appfunctions/AppFunctionException` when the function execution failed. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appfunctions/ExecuteAppFunctionResponse.Error#toString()()` |

## Public constructors

### Error

Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/appfunctions#1.0.0-rc01)

```
public Error(@NonNull AppFunctionException error)
```

## Public methods

### getError

Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/appfunctions#1.0.0-rc01)

```
public final @NonNull AppFunctionException getError()
```

The `https://developer.android.com/reference/androidx/appfunctions/AppFunctionException` when the function execution failed.

### toString

```
public @NonNull String toString()
```