sharee.bike-App/LockItShared/Services/BluetoothLock/Exception/StateAwareException.cs

16 lines
386 B
C#
Raw Normal View History

2022-08-30 15:42:25 +02:00
using TINK.Model.Bikes.BikeInfoNS.BluetoothLock;
2021-05-13 17:07:16 +02:00
namespace TINK.Services.BluetoothLock.Exception
{
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
}