public static void MetodoClase() { try { Burbujeo b = new Burbujeo(); b.MetodoInstancia(); } catch (MiException e) { Burbujeo.EscribirArchivo(e.Message); throw new MiException("MetodoClase"); } }
public static void MetodoClase() { try { Burbujeo b = new Burbujeo(); b.MetodoInstancia(); } catch (MiException ex) { Burbujeo.Escribir("Metodo Clase" + DateTime.Now); throw ex; } }
public static void MetodoClase() { GuardarArchivo("Pasa por metodo de clase estatico"); try { Burbujeo burb = new Burbujeo(); burb.MetodoInstancia(); } catch (MiException e) { throw e; } }
public static void MetodoClase() { try { Burbujeo b = new Burbujeo(); b.MetodoInstacia(); } catch (MiException e) { using (StreamWriter sw = new StreamWriter("burbujeo.txt", true)) { sw.WriteLine("\nPaso por el metodo estatico " + DateTime.Now.ToString()); } throw new MiException(e.Message + "Paso por el metodo estatico " + DateTime.Now.ToString(), e); } }
public void MetodoInstancia() { Burbujeo.Escribir("Metodo Instancia" + DateTime.Now); throw new MiException(); }