ConnectionsException


@RequiresApi(value = 26) class ConnectionsException : CrossDeviceException


Exception for connections requests. Result or ListenableFuture returned from Participant.openConnection or Participant.acceptConnection may fail with this exception.

Summary

Public constructors

ConnectionsException(
    errorCode: @ConnectionsException.ConnectionsErrorCode Int,
    message: String?,
    cause: Throwable?
)

Public properties

open @ConnectionsException.ConnectionsErrorCode Int

The error code associated with this exception.

Public constructors

ConnectionsException

ConnectionsException(
    errorCode: @ConnectionsException.ConnectionsErrorCode Int,
    message: String? = null,
    cause: Throwable? = null
)

Public properties

errorCode

open val errorCode: @ConnectionsException.ConnectionsErrorCode Int

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