Stay organized with collections
Save and categorize content based on your preferences.
SessionException.Companion
object SessionException.Companion
Summary
Constants
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,["# SessionException.Companion\n==========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/com/google/ambient/crossdevice/sessions/SessionException.Companion \"View this page in Java\")\n\n\n```\nobject SessionException.Companion\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `const `[Int](/reference/kotlin/kotlin/Int) | [CONNECTION_FAILURE](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#CONNECTION_FAILURE())` = 6` |\n| `const `[Int](/reference/kotlin/kotlin/Int) | [HANDLE_INVALIDATED](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#HANDLE_INVALIDATED())` = 10` |\n| `const `[Int](/reference/kotlin/kotlin/Int) | [INTERNAL_CONNECTION_DISCONNECTED](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#INTERNAL_CONNECTION_DISCONNECTED())` = 5` |\n| `const `[Int](/reference/kotlin/kotlin/Int) | [INTERNAL_ERROR](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#INTERNAL_ERROR())` = 1` |\n| `const `[Int](/reference/kotlin/kotlin/Int) | [INVALID_PARTICIPANT](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#INVALID_PARTICIPANT())` = 4` |\n| `const `[Int](/reference/kotlin/kotlin/Int) | [INVALID_SESSION_ID](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#INVALID_SESSION_ID())` = 2` |\n| `const `[Int](/reference/kotlin/kotlin/Int) | [INVALID_START_COMPONENT_REQUEST](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#INVALID_START_COMPONENT_REQUEST())` = 11` |\n| `const `[Int](/reference/kotlin/kotlin/Int) | [NO_DEVICES_SELECTED](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#NO_DEVICES_SELECTED())` = 9` |\n| `const `[Int](/reference/kotlin/kotlin/Int) | [OPERATION_NOT_ALLOWED](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#OPERATION_NOT_ALLOWED())` = 3` |\n| `const `[Int](/reference/kotlin/kotlin/Int) | [SESSIONS_NOT_INITIALIZED](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#SESSIONS_NOT_INITIALIZED())` = 12` |\n| `const `[Int](/reference/kotlin/kotlin/Int) | [SESSION_ACTION_CANCELLED](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#SESSION_ACTION_CANCELLED())` = 8` |\n| `const `[Int](/reference/kotlin/kotlin/Int) | [UNEXPECTED_STATE](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionException.Companion#UNEXPECTED_STATE())` = 7` |\n\nConstants\n---------\n\n### CONNECTION_FAILURE\n\n```\nconst val CONNECTION_FAILURE = 6: Int\n``` \n\n### HANDLE_INVALIDATED\n\n```\nconst val HANDLE_INVALIDATED = 10: Int\n``` \n\n### INTERNAL_CONNECTION_DISCONNECTED\n\n```\nconst val INTERNAL_CONNECTION_DISCONNECTED = 5: Int\n``` \n\n### INTERNAL_ERROR\n\n```\nconst val INTERNAL_ERROR = 1: Int\n``` \n\n### INVALID_PARTICIPANT\n\n```\nconst val INVALID_PARTICIPANT = 4: Int\n``` \n\n### INVALID_SESSION_ID\n\n```\nconst val INVALID_SESSION_ID = 2: Int\n``` \n\n### INVALID_START_COMPONENT_REQUEST\n\n```\nconst val INVALID_START_COMPONENT_REQUEST = 11: Int\n``` \n\n### NO_DEVICES_SELECTED\n\n```\nconst val NO_DEVICES_SELECTED = 9: Int\n``` \n\n### OPERATION_NOT_ALLOWED\n\n```\nconst val OPERATION_NOT_ALLOWED = 3: Int\n``` \n\n### SESSIONS_NOT_INITIALIZED\n\n```\nconst val SESSIONS_NOT_INITIALIZED = 12: Int\n``` \n\n### SESSION_ACTION_CANCELLED\n\n```\nconst val SESSION_ACTION_CANCELLED = 8: Int\n``` \n\n### UNEXPECTED_STATE\n\n```\nconst val UNEXPECTED_STATE = 7: Int\n```"]]