public MiClase(int n) { try { MiClase miClase = new MiClase(); } catch (Exception e) { throw new UnaExcepcion("mensaje", e); } }
public void metodo() { try { MiClase mc = new MiClase(); } catch (UnaExcepcion ex) { throw new MiExcepcion("una excepcion cazada", ex); } }
public MiClase() { try { MiClase.MiMetodo(); } catch (DivideByZeroException e) { throw e; } }
public MiClase() { try { MiClase.MetodoEstatico(); } catch (Exception e) { throw e; } }
public MiClase(int a) { try { MiClase mc = new MiClase(); } catch (DivideByZeroException e) { throw new UnaExcepcion("Se ha lanzado una excepcion", e); } }
public void MetodoInstancia() { try { MiClase miClase = new MiClase(2); } catch (Exception e) { throw new MiExcepcion("mensaje2", e); } }
public MiClase() { try { MiClase.Lanzar(); } catch (DivideByZeroException ex) { throw ex; } }
public void MetodoInstancia() { try { MiClase miClase = new MiClase(2); } catch (DivideByZeroException b) { throw new MiException("Mensaje2", b); } }
public MiClase(int i) { try { MiClase miClase = new MiClase(); } catch (Exception b) { throw new UnaException("mensaje", b); } }
public OtraClase() { try { MiClase mc = new MiClase(0); } catch (UnaExcepcion e) { throw new MiExcepcion("Constructor OtraClase", e); } }
public MiClase() { try { MiClase.MetodEstat(); Console.WriteLine("hoola5"); } catch (DivideByZeroException) { throw; } Console.WriteLine("hoola6"); }