, , , - , , SMTPAppender, Log4Net .
That being said, it really depends on whether you want to handle different exceptions differently, for example, if the file was not found, you can decide to create it or say that the user did something, if you selected a more general exception, you you can act differently ...
just keep in mind that you have to put all your catch clauses from more specific to more general, in your example, if you have several catches, the one you wrote should be placed at the end.
source
share