# ConnectionsException.Companion

# ConnectionsException.Companion

*** ** * ** ***

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

<br />

```
object ConnectionsException.Companion
```

<br />

*** ** * ** ***

## Summary

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

## Constants

### CONNECTION_CLOSED

```
const val CONNECTION_CLOSED = 3: Int
```

Error code indicating the connection has been closed.  

### INTERNAL_ERROR

```
const val INTERNAL_ERROR = 2: Int
```

Error code indicating when an unidentified internal error occurs.  

### TIMEOUT

```
const val TIMEOUT = 1: Int
```

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