Relative Content

Tag Archive for exception-handling

Is it a Good Practice to Catch All Exception? [duplicate]

This question already has answers here: Is catching general exceptions really a bad thing? (12 answers) Closed 9 years ago. The snippet below (in java) gives an example of my question. try { // code implementation here } } catch (Exception ex) { } Now, is that a good practice? Does it affect code performance. […]

Is it a Good Practice to Catch All Exception? [duplicate]

This question already has answers here: Is catching general exceptions really a bad thing? (12 answers) Closed 9 years ago. The snippet below (in java) gives an example of my question. try { // code implementation here } } catch (Exception ex) { } Now, is that a good practice? Does it affect code performance. […]