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