public MiClase()
 {
     try
     {
         MiClase.MetodoStatic();
     }
     catch (DivideByZeroException e)
     {
         throw e;
     }
 }
예제 #2
0
 public void MetodoInstancia()
 {
     try
     {
         MiClase miClase = new MiClase("Este es un mensaje");
     }
     catch (UnaExcepcion e)
     {
         throw new MiException("Fallo en otra clase", e);
     }
 }
 public MiClase(string unMensaje)
 {
     try
     {
         MiClase clase = new MiClase();
     }
     catch (DivideByZeroException e)
     {
         throw new UnaExcepcion("Fallo en Mi clase", e);
     }
 }