From ffa3c1f5ba52a648e4846f8fa0144e453d887f9f Mon Sep 17 00:00:00 2001 From: Bailey Date: Sat, 13 Jan 2024 10:18:00 -0600 Subject: [PATCH] fix: error handling --- src/Api.Contract/IError.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Api.Contract/IError.cs b/src/Api.Contract/IError.cs index b4da01165..e7e173609 100644 --- a/src/Api.Contract/IError.cs +++ b/src/Api.Contract/IError.cs @@ -12,6 +12,11 @@ public class ErrorResponse : IErrorResponse public ErrorCode Code { get; set; } public Exception? Exception { get; set; } + public ErrorResponse() + { + Message = string.Empty; + } + public ErrorResponse(string message, Exception? ex = null) { Message = message;