Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
namespace Leiren.Erp.Application.Shipping;
|
||||
|
||||
public sealed class ShippingNotFoundException(string message) : Exception(message);
|
||||
|
||||
public sealed class ShippingConflictException(string message) : Exception(message);
|
||||
|
||||
public sealed class ShippingValidationException(IReadOnlyDictionary<string, string[]> errors)
|
||||
: Exception("出货资料校验失败。")
|
||||
{
|
||||
public IReadOnlyDictionary<string, string[]> Errors { get; } = errors;
|
||||
|
||||
public ShippingValidationException(string field, string message)
|
||||
: this(new Dictionary<string, string[]> { [field] = [message] })
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user