SessionException


@RequiresApi(value = 26) class SessionException : CrossDeviceException


Exception for session requests. Result or ListenableFuture returned from APIs in Sessions may fail with this exception.

Summary

Public constructors

SessionException(
    errorCode: @SessionException.SessionErrorCode Int,
    message: String?,
    cause: Throwable?
)

Public properties

open @SessionException.SessionErrorCode Int

The error code associated with this exception.

Public constructors

SessionException

SessionException(
    errorCode: @SessionException.SessionErrorCode Int,
    message: String? = null,
    cause: Throwable? = null
)

Public properties

errorCode

open val errorCode: @SessionException.SessionErrorCode Int

The error code associated with this exception. Refer to the concrete implementations for the possible error codes and their meanings.