Can I have nested try-catch blocks? For example:
void f() { try { //Some code try { //Some code } catch(ExceptionA a) { //Some specific exception handling } //Some code } catch(...) { //Some exception handling } }//f
Yes perfectly legal.
Though it would be best to move inner ones into another method so it looks cleaner and your method(s) are smaller