Example #1
0
 public MiClase(int numero)
 {
     try
     {
         MiClase objeto = new MiClase();
     }
     catch (DivideByZeroException esepcion)
     {
         throw new DivideByZeroException("fallo3", esepcion);
     }
 }
Example #2
0
 public MiClase()
 {
     try
     {
         MiClase.StaticMethod();
     }
     catch (DivideByZeroException esepcion)
     {
         throw new DivideByZeroException("fallo2", esepcion);
     }
 }
Example #3
0
        public static void metodo()
        {
            int numero = 0;

            try
            {
                MiClase objeto = new MiClase(numero);
            }
            catch (DivideByZeroException gato)
            {
                throw new UnaEsepcion();
            }
        }