Skip to content
Discussion options

You must be logged in to vote

You can already do this:

if (someCondition) try
{
    someFunction();
}
catch (Exception e)
{
    Console.WriteLine("Exception caught: " + e);
}
finally
{
    someOtherFunction();
}

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Matsyir
Comment options

@333fred
Comment options

@Matsyir
Comment options

@HaloFour
Comment options

@333fred
Comment options

Answer selected by Matsyir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants