2024-04-09 12:53:23 +02:00
|
|
|
|
using ShareeBike.Model.Bikes.BikeInfoNS.BluetoothLock;
|
2021-05-13 17:07:16 +02:00
|
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
|
namespace ShareeBike.Services.BluetoothLock.Exception
|
2021-05-13 17:07:16 +02:00
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public abstract class StateAwareException : System.Exception
|
|
|
|
|
{
|
|
|
|
|
public StateAwareException(LockingState state, string description) : base(description)
|
|
|
|
|
{
|
|
|
|
|
State = state;
|
|
|
|
|
}
|
2021-05-13 17:07:16 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary> Holds the state reported by lock.</summary>
|
|
|
|
|
public LockingState State { get; }
|
|
|
|
|
}
|
2021-05-13 17:07:16 +02:00
|
|
|
|
}
|