# AppFunctionRequestException

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

*** ** * ** ***


```
abstract class AppFunctionRequestException : AppFunctionException
```

<br />

|---|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) ||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) |||
|   |   | ↳ | [androidx.appfunctions.AppFunctionException](https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionException) ||
|   |   |   | ↳ | [androidx.appfunctions.AppFunctionRequestException](https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionRequestException) |

Known direct subclasses [AppFunctionDeniedException](https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionDeniedException), [AppFunctionDisabledException](https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionDisabledException), [AppFunctionElementAlreadyExistsException](https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionElementAlreadyExistsException), [AppFunctionElementNotFoundException](https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionElementNotFoundException), [AppFunctionFunctionNotFoundException](https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionFunctionNotFoundException), [AppFunctionInvalidArgumentException](https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionInvalidArgumentException), [AppFunctionLimitExceededException](https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionLimitExceededException)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionDeniedException` | Thrown when the caller does not have the permission to execute an app function. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionDisabledException` | Thrown when the caller tried to execute a disabled app function. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionElementAlreadyExistsException` | Thrown when the caller tried to create a resource/entity that already exists or has conflicts with existing resource/entity. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionElementNotFoundException` | Thrown when the caller tried to request a resource/entity that does not exist. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionFunctionNotFoundException` | Thrown when the caller tries to execute a function that does not exist. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionInvalidArgumentException` | Thrown when the caller supplied invalid arguments to `https://developer.android.com/reference/kotlin/androidx/appfunctions/ExecuteAppFunctionRequest`'s parameters. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionLimitExceededException` | Thrown when the caller exceeded the allowed request rate. |

*** ** * ** ***

Thrown when the error is caused by the app requesting a function execution.

For example, the caller provided invalid parameters in the execution request e.g. an invalid function ID.

## Summary

### Inherited functions

From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/add-suppressed.html(exception: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/fill-in-stack-trace.html()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/init-cause.html(cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html(s: https://developer.android.com/reference/java/io/PrintStream.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html(s: https://developer.android.com/reference/java/io/PrintWriter.html)`

### Inherited properties

From [androidx.appfunctions.AppFunctionException](https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionException) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionException#errorMessage()`

The error message.
From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/cause.html` `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/localized-message.html` `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/message.html` `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/lang/StackTraceElement.html>` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/stack-trace.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html>` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/suppressed.html`