sharee.bike-App/LockIt.BusinessLogic/Services/BluetoothLock/Exception/CouldntCloseInconsistentStateExecption.cs
2024-04-09 12:53:23 +02:00

18 lines
526 B
C#

using ShareeBike.Model.Bikes.BikeInfoNS.BluetoothLock;
using ShareeBike.MultilingualResources;
namespace ShareeBike.Services.BluetoothLock.Exception
{
public class CouldntCloseInconsistentStateExecption : StateAwareException
{
public CouldntCloseInconsistentStateExecption(LockingState state) :
base(
state,
state != LockingState.UnknownFromHardwareError
? string.Format(Resources.LockItExceptionCloseLockUnexpectedLockState, state)
: Resources.LockItExceptionCloseLockUnknownPosition)
{
}
}
}