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;