using TINK.Model.Bikes.BikeInfoNS.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.LockItExceptionCloseLockUnexpectedLockState, state)
					: Resources.LockItExceptionCloseLockUnknownPosition)
		{
		}
	}
}