hermes-socket-library/Socket/Data/ErrorMessage.cs

20 lines
459 B
C#
Raw Normal View History

2024-06-24 18:31:45 -04:00
namespace HermesSocketLibrary.Socket.Data
{
public class ErrorMessage
{
public Exception? Exception { get; set; }
public string Message { get; set; }
public ErrorMessage(Exception exception, string message)
{
Exception = exception;
Message = message;
}
public ErrorMessage(string message)
{
Message = message;
Exception = null;
}
}
}