From 798063ac66090202c21f4d3cb07ab98c97442dbe Mon Sep 17 00:00:00 2001 From: MrDave1999 Date: Sun, 12 Nov 2023 09:52:49 -0500 Subject: [PATCH] style: Add comment to parameter "errors" --- src/Core/Result.Errors.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Core/Result.Errors.cs b/src/Core/Result.Errors.cs index d30aff8..f1b8e8d 100644 --- a/src/Core/Result.Errors.cs +++ b/src/Core/Result.Errors.cs @@ -26,6 +26,7 @@ public static Result Failure() public static Result Failure(string message) => Failure(message, Enumerable.Empty()); + /// A collection of string that contains error messages. /// public static Result Failure(IEnumerable errors) => Failure(string.Empty, errors); @@ -47,6 +48,7 @@ public static Result Invalid() public static Result Invalid(string message) => Invalid(message, Enumerable.Empty()); + /// A collection of string that contains error messages. /// public static Result Invalid(IEnumerable errors) => Invalid(ResponseMessages.ValidationErrors, errors); @@ -69,6 +71,7 @@ public static Result NotFound() public static Result NotFound(string message) => NotFound(message, Enumerable.Empty()); + /// A collection of string that contains error messages. /// public static Result NotFound(IEnumerable errors) => NotFound(string.Empty, errors); @@ -90,6 +93,7 @@ public static Result Unauthorized() public static Result Unauthorized(string message) => Unauthorized(message, Enumerable.Empty()); + /// A collection of string that contains error messages. /// public static Result Unauthorized(IEnumerable errors) => Unauthorized(string.Empty, errors); @@ -115,6 +119,7 @@ public static Result Conflict() public static Result Conflict(string message) => Conflict(message, Enumerable.Empty()); + /// A collection of string that contains error messages. /// public static Result Conflict(IEnumerable errors) => Conflict(string.Empty, errors); @@ -136,12 +141,13 @@ public static Result CriticalError() public static Result CriticalError(string message) => CriticalError(message, Enumerable.Empty()); + /// A collection of string that contains error messages. /// public static Result CriticalError(IEnumerable errors) => CriticalError(string.Empty, errors); /// - /// Represents a critical error that occurred during the execution of the service. + /// Represents a situation where a service detects unexpected behavior (critical error) and does not know how to handle it. /// /// /// Everything provided by the user was valid, but the service was unable to complete due to an exception. @@ -160,6 +166,7 @@ public static Result Forbidden() public static Result Forbidden(string message) => Forbidden(message, Enumerable.Empty()); + /// A collection of string that contains error messages. /// public static Result Forbidden(IEnumerable errors) => Forbidden(string.Empty, errors);