public static void TakeAction() { try { //do something } catch (SpecificDotNetException ex) { //log, wrap and throw MyExceptionManagement.LogException(ex) throw new MyApplicationCustomException(ex, "Some friendly error message", MyCustomErrorsType.Transactional); } finally { //clean up... } }
public static void TakeAction() { try { //do something } catch (SpecificDotNetException ex) { //log, wrap and throw MyExceptionManagement.LogException(ex) throw new MyApplicationCustomException(ex); } finally { //clean up... } }