RosettaCodeData/Task/Flow-control-structures/C-sharp/flow-control-structures-2.cs
2019-09-12 10:33:56 -07:00

10 lines
155 B
C#

try {
if (someCondition) {
throw new Exception();
}
} catch (Exception ex) {
LogException(ex);
throw;
} finally {
cleanUp();
}