# ConnectionsException.Companion

# ConnectionsException.Companion

*** ** * ** ***

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

<br />

```
object ConnectionsException.Companion
```

<br />

*** ** * ** ***

## Summary

|                                                                                                                  ### Constants                                                                                                                   ||
|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `static final int` | [CONNECTION_CLOSED](https://developer.android.com/reference/com/google/ambient/crossdevice/connections/ConnectionsException.Companion#CONNECTION_CLOSED())` = 3` Error code indicating the connection has been closed.       |
| `static final int` | [INTERNAL_ERROR](https://developer.android.com/reference/com/google/ambient/crossdevice/connections/ConnectionsException.Companion#INTERNAL_ERROR())` = 2` Error code indicating when an unidentified internal error occurs. |
| `static final int` | [TIMEOUT](https://developer.android.com/reference/com/google/ambient/crossdevice/connections/ConnectionsException.Companion#TIMEOUT())` = 1` Error code indicating the attempt to open a connection timed out.               |

## Constants

### CONNECTION_CLOSED

```
public static final int CONNECTION_CLOSED = 3
```

Error code indicating the connection has been closed.  

### INTERNAL_ERROR

```
public static final int INTERNAL_ERROR = 2
```

Error code indicating when an unidentified internal error occurs.  

### TIMEOUT

```
public static final int TIMEOUT = 1
```

Error code indicating the attempt to open a connection timed out.