If I'm writing a method, in C# for example, I will use a try catch block.
Let's say the method adds some numbers but I log exceptions in the catch block. What's the best way to handle an exception causes in the catch block? e.g. the method may have an unrelated exception to the logging in the catch block throwing file not found (maybe file was deleted between file existence check and writing to it).
What's the best way to handle this and what's the general behaviour in C#?