Exemple #1
0
 public ClaseException()
 {
     try
     {
         int i = ClaseException.Metodo();
     }
     catch (DivideByZeroException e)
     {
         new UnaException(e);
     }
 }
Exemple #2
0
 public ClaseException()
 {
     try
     {
         ClaseException.MetodoException(1, 0);
     }
     catch (DivideByZeroException d)
     {
         throw d;
     }
 }
Exemple #3
0
 static void Main(string[] args)
 {
     try
     {
         ClaseException j = new ClaseException();
         j.MetodoInstancia();
     }
     catch (MiException e)
     {
         Console.WriteLine(e.Message);
     }
     Console.ReadLine();
 }