feat(adm-009): ITipoDeIvaRepository + IIngresosBrutosRepository abstractions

This commit is contained in:
2026-04-17 18:09:36 -03:00
parent 1d051c93d6
commit eead0a35cd
6 changed files with 135 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
namespace SIGCM2.Domain.Exceptions;
/// <summary>
/// Thrown when a requested IngresosBrutos record does not exist in the system.
/// </summary>
public sealed class IngresosBrutosNotFoundException : DomainException
{
public int Id { get; }
public IngresosBrutosNotFoundException(int id)
: base($"El registro de Ingresos Brutos con id '{id}' no existe.")
{
Id = id;
}
}

View File

@@ -0,0 +1,15 @@
namespace SIGCM2.Domain.Exceptions;
/// <summary>
/// Thrown when a requested TipoDeIva does not exist in the system.
/// </summary>
public sealed class TipoDeIvaNotFoundException : DomainException
{
public int Id { get; }
public TipoDeIvaNotFoundException(int id)
: base($"El tipo de IVA con id '{id}' no existe.")
{
Id = id;
}
}