16 lines
443 B
C#
16 lines
443 B
C#
namespace SIGCM2.Domain.Exceptions;
|
|
|
|
/// <summary>
|
|
/// Thrown when attempting to create or move a Rubro under an inactive parent. → HTTP 400
|
|
/// </summary>
|
|
public sealed class RubroPadreInactivoException : DomainException
|
|
{
|
|
public int ParentId { get; }
|
|
|
|
public RubroPadreInactivoException(int parentId)
|
|
: base($"El padre con id '{parentId}' está inactivo y no puede tener hijos.")
|
|
{
|
|
ParentId = parentId;
|
|
}
|
|
}
|