public string Procesar( ref ExcepcionFe ex ) { string mensaje = ""; foreach ( CodigoDescripcionType error in this.errores ) { ex.AgregarError( error ); mensaje = mensaje + "\r\nERROR DE PROCESO: " + error.descripcion + " (" + error.codigo + ")"; } return mensaje; }
public string Procesar( ref ExcepcionFe ex ) { string mensaje = ""; foreach ( Err error in this.errores ) { ex.AgregarError( error ); mensaje = mensaje + "\r\nERROR DE PROCESO: " + error.Msg + " (" + error.Code + ")"; } return mensaje; }
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; }