How one can restrict a function to throw particular exceptions only?
Posted: Wed Jul 13, 2022 7:52 pm
a) By defining multiple try-catch blocks inside a function
b) By defining a generic function within a try-catch block
c) By defining a function with throw clauses
d) Not allowed in C++
b) By defining a generic function within a try-catch block
c) By defining a function with throw clauses
d) Not allowed in C++