Lidar com exceções em D

Veja como lidar com exceções em D. try { throw new Exception(“error message”);} catch (Exception error) { writefln(“Error catched: %s”, error.msg);} finally { writefln(“in finaly block”);} catch (Exception error)capturará todas …

Continuar lendo