sharee.bike-App/LockIt.BusinessLogic/Services/BluetoothLock/Exception/ConnectBluetoothNotOnException.cs

18 lines
801 B
C#
Raw Normal View History

2022-04-10 17:38:34 +02:00

2024-04-09 12:53:23 +02:00
using ShareeBike.MultilingualResources;
2022-04-10 17:38:34 +02:00
2024-04-09 12:53:23 +02:00
namespace ShareeBike.Services.BluetoothLock.Exception
2022-04-10 17:38:34 +02:00
{
2022-09-06 16:08:19 +02:00
/// <summary> Exception which is fired when bluetooth is not on. </summary>
/// <remarks>
/// Member to determine if app is disconnected: IBluetoothLE.State from server Plugin.BLE. If current value is not BluetoothState.On exception is fired.
/// All possible states: Unknown, Unavailable, Unauthorized, TurningOn, On, TurningOff, Off.
/// </remarks>
public class ConnectBluetoothNotOnException : System.Exception
{
2023-08-31 12:20:06 +02:00
public ConnectBluetoothNotOnException() : base(Resources.LockItExceptionConnectLockBluetoothOffException) { }
2022-04-10 17:38:34 +02:00
2023-08-31 12:20:06 +02:00
public ConnectBluetoothNotOnException(object state) : base(string.Format(Resources.LockItExceptionConnectLockBluetoothNotOnException, state.ToString())) { }
2022-09-06 16:08:19 +02:00
}
2022-04-10 17:38:34 +02:00
}