Stay organized with collections
Save and categorize content based on your preferences.
ConnectionsException.Companion
object ConnectionsException.Companion
Summary
Constants |
const Int |
Error code indicating the connection has been closed.
|
const Int |
Error code indicating when an unidentified internal error occurs.
|
const Int |
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ConnectionsException.Companion\n==============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/com/google/ambient/crossdevice/connections/ConnectionsException.Companion \"View this page in Java\")\n\n\n```\nobject ConnectionsException.Companion\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `const `[Int](/reference/kotlin/kotlin/Int) | [CONNECTION_CLOSED](/reference/kotlin/com/google/ambient/crossdevice/connections/ConnectionsException.Companion#CONNECTION_CLOSED())` = 3` Error code indicating the connection has been closed. |\n| `const `[Int](/reference/kotlin/kotlin/Int) | [INTERNAL_ERROR](/reference/kotlin/com/google/ambient/crossdevice/connections/ConnectionsException.Companion#INTERNAL_ERROR())` = 2` Error code indicating when an unidentified internal error occurs. |\n| `const `[Int](/reference/kotlin/kotlin/Int) | [TIMEOUT](/reference/kotlin/com/google/ambient/crossdevice/connections/ConnectionsException.Companion#TIMEOUT())` = 1` Error code indicating the attempt to open a connection timed out. |\n\nConstants\n---------\n\n### CONNECTION_CLOSED\n\n```\nconst val CONNECTION_CLOSED = 3: Int\n```\n\nError code indicating the connection has been closed. \n\n### INTERNAL_ERROR\n\n```\nconst val INTERNAL_ERROR = 2: Int\n```\n\nError code indicating when an unidentified internal error occurs. \n\n### TIMEOUT\n\n```\nconst val TIMEOUT = 1: Int\n```\n\nError code indicating the attempt to open a connection timed out."]]