ConnectionsException


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


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

Summary

Public fields

@ConnectionsException.ConnectionsErrorCode int

The error code associated with this exception.

Public constructors

ConnectionsException(
    @ConnectionsException.ConnectionsErrorCode int errorCode,
    String message,
    Throwable cause
)

Public fields

errorCode

public @ConnectionsException.ConnectionsErrorCode int errorCode

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

Public constructors

ConnectionsException

public final ConnectionsException(
    @ConnectionsException.ConnectionsErrorCode int errorCode,
    String message,
    Throwable cause
)