# SessionException.Companion

# SessionException.Companion

*** ** * ** ***

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

<br />

```
object SessionException.Companion
```

<br />

*** ** * ** ***

## Summary

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

## Constants

### CONNECTION_FAILURE

```
public static final int CONNECTION_FAILURE = 6
```  

### HANDLE_INVALIDATED

```
public static final int HANDLE_INVALIDATED = 10
```  

### INTERNAL_CONNECTION_DISCONNECTED

```
public static final int INTERNAL_CONNECTION_DISCONNECTED = 5
```  

### INTERNAL_ERROR

```
public static final int INTERNAL_ERROR = 1
```  

### INVALID_PARTICIPANT

```
public static final int INVALID_PARTICIPANT = 4
```  

### INVALID_SESSION_ID

```
public static final int INVALID_SESSION_ID = 2
```  

### INVALID_START_COMPONENT_REQUEST

```
public static final int INVALID_START_COMPONENT_REQUEST = 11
```  

### NO_DEVICES_SELECTED

```
public static final int NO_DEVICES_SELECTED = 9
```  

### OPERATION_NOT_ALLOWED

```
public static final int OPERATION_NOT_ALLOWED = 3
```  

### SESSIONS_NOT_INITIALIZED

```
public static final int SESSIONS_NOT_INITIALIZED = 12
```  

### SESSION_ACTION_CANCELLED

```
public static final int SESSION_ACTION_CANCELLED = 8
```  

### UNEXPECTED_STATE

```
public static final int UNEXPECTED_STATE = 7
```