Skip to content

Commit

Permalink
fix: error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
philosowaffle committed Jan 13, 2024
1 parent 63495c6 commit ffa3c1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Api.Contract/IError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ffa3c1f

Please sign in to comment.