# SessionCreateUnknownError

Artifact: [androidx.xr.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/xr-runtime) [View Source](https://cs.android.com/search?q=file:androidx/xr/runtime/SessionResults.kt+class:androidx.xr.runtime.SessionCreateUnknownError) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

*** ** * ** ***


```
public final class SessionCreateUnknownError extends SessionCreateResult
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.xr.runtime.SessionCreateResult](https://developer.android.com/reference/androidx/xr/runtime/SessionCreateResult) ||
|   | ↳ | [androidx.xr.runtime.SessionCreateUnknownError](https://developer.android.com/reference/androidx/xr/runtime/SessionCreateUnknownError) |

*** ** * ** ***

Result of an unsuccessful `https://developer.android.com/reference/androidx/xr/runtime/Session#create(android.content.Context,kotlin.coroutines.CoroutineContext,androidx.lifecycle.LifecycleOwner)` call. The session was not created due to an unknown internal error. See the contents of `https://developer.android.com/reference/androidx/xr/runtime/SessionCreateUnknownError#(kotlin.String)` for more information.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/xr/runtime/SessionCreateUnknownError#SessionCreateUnknownError(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html errorMessage)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/runtime/SessionCreateUnknownError#getErrorMessage()()` a message supplied by the error that occurred |

## Public constructors

### SessionCreateUnknownError

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

```
public SessionCreateUnknownError(@NonNull String errorMessage)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html errorMessage` | a message supplied by the error that occurred |

## Public methods

### getErrorMessage

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

```
public final @NonNull String getErrorMessage()
```

a message supplied by the error that occurred