Refactored endpoints to be more functional and more expressive
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
namespace PostFundManagement.Domain.Errors;
|
||||
|
||||
public sealed class ValidationError : Error
|
||||
{
|
||||
public static ValidationError New { get; } = new();
|
||||
|
||||
public ValidationError() : base(string.Empty) { }
|
||||
|
||||
public ValidationError(string message) : base(message) { }
|
||||
|
||||
public static ValidationError Create() => new();
|
||||
|
||||
public static ValidationError Create(string message) => new(message);
|
||||
}
|
||||
Reference in New Issue
Block a user