# AppFunctionUnknownException

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

*** ** * ** ***


```
public final class AppFunctionUnknownException extends AppFunctionException
```

<br />

|---|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||||
| ↳ | [kotlin.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) ||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) |||
|   |   | ↳ | [androidx.appfunctions.AppFunctionException](https://developer.android.com/reference/androidx/appfunctions/AppFunctionException) ||
|   |   |   | ↳ | [androidx.appfunctions.AppFunctionUnknownException](https://developer.android.com/reference/androidx/appfunctions/AppFunctionUnknownException) |

*** ** * ** ***

Thrown when an unknown error has occurred.

This Exception is used when the error doesn't belong to any other AppFunctionException. This may happen due to version skews in the error codes between the platform and the sdk. E.g. if the app is running on a newer platform version (with a new error code) and an older sdk.

Note that this is different from `https://developer.android.com/reference/androidx/appfunctions/AppFunctionAppUnknownException`, in that the error wasn't necessarily caused by the app.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/appfunctions/AppFunctionUnknownException#AppFunctionUnknownException(kotlin.Int,kotlin.String)(int errorCode, https://developer.android.com/reference/java/lang/String.html errorMessage)` Create an `https://developer.android.com/reference/androidx/appfunctions/AppFunctionUnknownException`. |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/appfunctions/AppFunctionUnknownException#getErrorCode()()` |

### Inherited methods

From [androidx.appfunctions.AppFunctionException](https://developer.android.com/reference/androidx/appfunctions/AppFunctionException) `final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/appfunctions/AppFunctionException#getErrorMessage()()`

The error message.
From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) `final void` `https://developer.android.com/reference/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Throwable.html exception)` `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Throwable.html` `https://developer.android.com/reference/java/lang/Throwable.html#fillInStackTrace()()` `https://developer.android.com/reference/java/lang/Throwable.html` `https://developer.android.com/reference/java/lang/Throwable.html#getCause()()` `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` `@https://developer.android.com/reference/androidx/annotation/RecentlyNullable
https://developer.android.com/reference/java/lang/Throwable.html#getLocalizedMessage()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/java/lang/Throwable.html#getMessage()()` `@https://developer.android.com/reference/androidx/annotation/NonNull StackTraceElement[]` `@https://developer.android.com/reference/androidx/annotation/RecentlyNonNull
https://developer.android.com/reference/java/lang/Throwable.html#getStackTrace()()` `final @https://developer.android.com/reference/androidx/annotation/NonNull Throwable[]` `@https://developer.android.com/reference/androidx/annotation/RecentlyNonNull
https://developer.android.com/reference/java/lang/Throwable.html#getSuppressed()()` `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Throwable.html` `https://developer.android.com/reference/java/lang/Throwable.html#initCause(java.lang.Throwable)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Throwable.html cause)` `void` `https://developer.android.com/reference/java/lang/Throwable.html#printStackTrace()()` `void` `https://developer.android.com/reference/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/io/PrintStream.html s)` `void` `https://developer.android.com/reference/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/io/PrintWriter.html s)` `void` `https://developer.android.com/reference/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])(@https://developer.android.com/reference/androidx/annotation/NonNull StackTraceElement[] stackTrace)`

## Public constructors

### AppFunctionUnknownException

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

```
public AppFunctionUnknownException(int errorCode, String errorMessage)
```

Create an `https://developer.android.com/reference/androidx/appfunctions/AppFunctionUnknownException`.

| Parameters |
|---|---|
| `int errorCode` | The error code. |
| `https://developer.android.com/reference/java/lang/String.html errorMessage` | The error message. |

## Public methods

### getErrorCode

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

```
public final int getErrorCode()
```