sharee.bike-App/LockItShared/Services/BluetoothLock/Exception/CouldntCloseInconsistentStateExecption.cs
2022-04-10 17:38:34 +02:00

18 lines
565 B
C#

using TINK.Model.Bike.BluetoothLock;
using TINK.MultilingualResources;
namespace TINK.Services.BluetoothLock.Exception
{
public class CouldntCloseInconsistentStateExecption : StateAwareException
{
public CouldntCloseInconsistentStateExecption(LockingState state) :
base(
state,
state != LockingState.UnknownFromHardwareError
? string.Format(Resources.ErrorCloseLockUnexpectedState, state)
: Resources.ErrorCloseLockUnknownPosition)
{
}
}
}