If you are going to just catch, not handle the exception and ignore it, you can simplify what you have.
try { // code } catch { }
Above for any exception, if you want to ignore any exception, but let others bubble up, you can do it
try { // code } catch (SpecificException) { }
If you ignore exceptions like this, it is best to include some comment in the catch block as to why you are ignoring such an exception.
source share