PalacePal/Pal.Client/DependencyInjection/DebugState.cs

16 lines
332 B
C#

using System;
namespace Pal.Client.DependencyInjection
{
internal sealed class DebugState
{
public string? DebugMessage { get; set; }
public void SetFromException(Exception e)
=> DebugMessage = $"{DateTime.Now}\n{e}";
public void Reset()
=> DebugMessage = null;
}
}