Class NearbyException
- Namespace
- Plugin.Maui.NearbyConnectivity
- Assembly
- Plugin.Maui.NearbyConnectivity.dll
The exception that is thrown when a nearby connectivity operation fails.
public class NearbyException : Exception, ISerializable
- Inheritance
-
NearbyException
- Implements
- Derived
- Inherited Members
Remarks
Every exception this plugin raises derives from this type, including the ones callers are expected to catch by name (listed below). It is deliberately not sealed, so that callers can derive their own exception types from it. Catch NearbyException to handle any failure that originates in the plugin without enumerating every derived type.
Constructors
NearbyException(string)
Initializes a new instance of the NearbyException class.
public NearbyException(string message)
Parameters
messagestringThe error message that explains the reason for the exception.
NearbyException(string, Exception)
Initializes a new instance of the NearbyException class.
public NearbyException(string message, Exception innerException)
Parameters
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe exception that is the cause of the current exception.