using TINK.MultilingualResources; namespace TINK.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.ErrorConnectLockBluetoothOffException) { } public ConnectBluetoothNotOnException(object state) : base(string.Format(Resources.ErrorConnectLockBluetoothNotOnException, state.ToString())) { } } }