public int ObtenerCondicionIvaArticulo( int tipoIva ) { int retorno = 0; try { retorno = this.condicionesIvaArticulos[tipoIva]; } catch ( Exception ex ) { ExcepcionFe miEx = new ExcepcionFe(); Err error = new Err(); error.Code = 0; error.Msg = "El porcentaje de IVA " + tipoIva.ToString() + "% no es valido."; miEx.AgregarError( error ); throw miEx; } return retorno; }
public void AgregarError( Err error ) { Error errorNuevo = new Error( error.Code, error.Msg ); this.errores.Add( errorNuevo ); }
public ProcesadorErrorFe( Err[] errores ) { this.errores = errores; }