Table of Contents

Class NearbyTransferException

Namespace
Plugin.Maui.NearbyConnectivity
Assembly
Plugin.Maui.NearbyConnectivity.dll

The exception that is thrown when sending or receiving a payload fails for a reason other than a timeout.

public class NearbyTransferException : NearbyException, ISerializable
Inheritance
NearbyTransferException
Implements
Derived
Inherited Members

Remarks

This exception is thrown from SendAsync(ReadOnlyMemory<byte>, CancellationToken) and the SendFileAsync overloads. Common causes are the remote device disconnecting mid-transfer, the platform returning an error for the send, or an I/O failure while reading a file to send. For a transfer that stalls instead of failing outright, see NearbyTransferTimeoutException.

Constructors

NearbyTransferException(string)

Initializes a new instance of the NearbyTransferException class.

public NearbyTransferException(string message)

Parameters

message string

The error message that explains the reason for the exception.

NearbyTransferException(string, Exception)

Initializes a new instance of the NearbyTransferException class.

public NearbyTransferException(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception.

See Also