Stay organized with collections Save and categorize content based on your preferences.

SessionException

@RequiresApi(value = 26) public final class SessionException extends CrossDeviceException


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

Summary

Public fields

@SessionException.SessionErrorCode int

The error code associated with this exception.

Public constructors

SessionException(
    @SessionException.SessionErrorCode int errorCode,
    String message,
    Throwable cause
)

Public fields

errorCode

public @SessionException.SessionErrorCode int errorCode

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

Public constructors

SessionException

public final SessionException(
    @SessionException.SessionErrorCode int errorCode,
    String message,
    Throwable cause
)