# SessionException.Companion

# SessionException.Companion

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/SessionException.Companion "View this page in Java")

<br />

```
object SessionException.Companion
```

<br />

*** ** * ** ***

## Summary

|                                                                                                                              ### Constants                                                                                                                               ||
|--------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://developer.android.com/reference/kotlin/kotlin/Int) | [CONNECTION_FAILURE](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#CONNECTION_FAILURE())` = 6`                             |
| `const `[Int](https://developer.android.com/reference/kotlin/kotlin/Int) | [HANDLE_INVALIDATED](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#HANDLE_INVALIDATED())` = 10`                            |
| `const `[Int](https://developer.android.com/reference/kotlin/kotlin/Int) | [INTERNAL_CONNECTION_DISCONNECTED](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#INTERNAL_CONNECTION_DISCONNECTED())` = 5` |
| `const `[Int](https://developer.android.com/reference/kotlin/kotlin/Int) | [INTERNAL_ERROR](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#INTERNAL_ERROR())` = 1`                                     |
| `const `[Int](https://developer.android.com/reference/kotlin/kotlin/Int) | [INVALID_PARTICIPANT](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#INVALID_PARTICIPANT())` = 4`                           |
| `const `[Int](https://developer.android.com/reference/kotlin/kotlin/Int) | [INVALID_SESSION_ID](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#INVALID_SESSION_ID())` = 2`                             |
| `const `[Int](https://developer.android.com/reference/kotlin/kotlin/Int) | [INVALID_START_COMPONENT_REQUEST](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#INVALID_START_COMPONENT_REQUEST())` = 11`  |
| `const `[Int](https://developer.android.com/reference/kotlin/kotlin/Int) | [NO_DEVICES_SELECTED](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#NO_DEVICES_SELECTED())` = 9`                           |
| `const `[Int](https://developer.android.com/reference/kotlin/kotlin/Int) | [OPERATION_NOT_ALLOWED](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#OPERATION_NOT_ALLOWED())` = 3`                       |
| `const `[Int](https://developer.android.com/reference/kotlin/kotlin/Int) | [SESSIONS_NOT_INITIALIZED](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#SESSIONS_NOT_INITIALIZED())` = 12`                |
| `const `[Int](https://developer.android.com/reference/kotlin/kotlin/Int) | [SESSION_ACTION_CANCELLED](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#SESSION_ACTION_CANCELLED())` = 8`                 |
| `const `[Int](https://developer.android.com/reference/kotlin/kotlin/Int) | [UNEXPECTED_STATE](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#UNEXPECTED_STATE())` = 7`                                 |

## Constants

### CONNECTION_FAILURE

```
const val CONNECTION_FAILURE = 6: Int
```  

### HANDLE_INVALIDATED

```
const val HANDLE_INVALIDATED = 10: Int
```  

### INTERNAL_CONNECTION_DISCONNECTED

```
const val INTERNAL_CONNECTION_DISCONNECTED = 5: Int
```  

### INTERNAL_ERROR

```
const val INTERNAL_ERROR = 1: Int
```  

### INVALID_PARTICIPANT

```
const val INVALID_PARTICIPANT = 4: Int
```  

### INVALID_SESSION_ID

```
const val INVALID_SESSION_ID = 2: Int
```  

### INVALID_START_COMPONENT_REQUEST

```
const val INVALID_START_COMPONENT_REQUEST = 11: Int
```  

### NO_DEVICES_SELECTED

```
const val NO_DEVICES_SELECTED = 9: Int
```  

### OPERATION_NOT_ALLOWED

```
const val OPERATION_NOT_ALLOWED = 3: Int
```  

### SESSIONS_NOT_INITIALIZED

```
const val SESSIONS_NOT_INITIALIZED = 12: Int
```  

### SESSION_ACTION_CANCELLED

```
const val SESSION_ACTION_CANCELLED = 8: Int
```  

### UNEXPECTED_STATE

```
const val UNEXPECTED_STATE = 7: Int
```