Because when I have the three errors, only the first one, the day one, and the month and year one, do not shoot?
if (di > 0 && di <= 31)
{
dia = di;
}
else
{
throw new Exception("\n"+ "El día no puede ser menor que 1 ni mayor que 31");
}
if (me > 0 && me <= 12)
{
mes = me;
}
else
{
throw new Exception("\n" + "El mes no puede ser menor que 1 ni mayor que 12");
}
if (an < 1992)
{
anio = an;
}
else
{
throw new Exception("\n" + "Debe ser mayor a 25 años para poder registrarse");
}