以下代码可以被视为一种良好做法吗?如果没有,为什么?
try { // code that can cause various exceptions... } catch (Exception e) { throw new MyCustomException("Custom error message", e); }
.net c# exception-handling exception
.net ×1
c# ×1
exception ×1
exception-handling ×1