RosettaCodeData/Task/Flow-control-structures/C-sharp/flow-control-structures-2.cs
2023-07-01 13:44:08 -04:00

10 lines
155 B
C#

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