using ShareeBike.MultilingualResources; namespace ShareeBike.Services.BluetoothLock.Exception { /// Exception which is fired when bluetooth is not on. /// /// 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. /// public class ConnectBluetoothNotOnException : System.Exception { public ConnectBluetoothNotOnException() : base(Resources.LockItExceptionConnectLockBluetoothOffException) { } public ConnectBluetoothNotOnException(object state) : base(string.Format(Resources.LockItExceptionConnectLockBluetoothNotOnException, state.ToString())) { } } }