-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
… CorrelationId (#173) * Update Error usage to take in a strongly typed wrapper class, ErrorList, for ErrorMessages and CorrelationId * Add default value for simpler usage of Error method * Add XML comments --------- Co-authored-by: Steve Smith <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Ardalis.Result; | ||
|
||
/// <summary> | ||
/// A wrapper class for a list of error messages and an optional CorrelationId. | ||
/// </summary> | ||
/// <param name="ErrorMessages"></param> | ||
/// <param name="CorrelationId"></param> | ||
public record ErrorList(IEnumerable<string> ErrorMessages, string? CorrelationId); | ||
Check warning on line 10 in src/Ardalis.Result/ErrorList.cs GitHub Actions / build
Check warning on line 10 in src/Ardalis.Result/ErrorList.cs GitHub Actions / build
Check warning on line 10 in src/Ardalis.Result/ErrorList.cs GitHub Actions / build
Check warning on line 10 in src/Ardalis.Result/ErrorList.cs GitHub Actions / build
Check warning on line 10 in src/Ardalis.Result/ErrorList.cs GitHub Actions / build
Check warning on line 10 in src/Ardalis.Result/ErrorList.cs GitHub Actions / build
Check warning on line 10 in src/Ardalis.Result/ErrorList.cs GitHub Actions / build
Check warning on line 10 in src/Ardalis.Result/ErrorList.cs GitHub Actions / build
Check warning on line 10 in src/Ardalis.Result/ErrorList.cs GitHub Actions / build
Check warning on line 10 in src/Ardalis.Result/ErrorList.cs GitHub Actions / build
Check warning on line 10 in src/Ardalis.Result/ErrorList.cs GitHub Actions / build
|