RosettaCodeData/Task/Flow-control-structures/C-sharp/flow-control-structures-2.cs

11 lines
155 B
C#
Raw Permalink Normal View History

2019-09-12 10:33:56 -07:00
try {
if (someCondition) {
throw new Exception();
}
} catch (Exception ex) {
LogException(ex);
throw;
} finally {
cleanUp();
}