feat: 初始化 BuildingBlocks 仓库
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
namespace TakeoutSaaS.Shared.Abstractions.Exceptions;
|
||||
|
||||
/// <summary>
|
||||
/// 验证异常(用于聚合验证错误信息)。
|
||||
/// </summary>
|
||||
public class ValidationException(IDictionary<string, string[]> errors) : Exception("一个或多个验证错误")
|
||||
{
|
||||
/// <summary>
|
||||
/// 字段/属性的错误集合。
|
||||
/// </summary>
|
||||
public IDictionary<string, string[]> Errors { get; } = errors;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user