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++
How one can restrict a function to throw particular exceptions only?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
How one can restrict a function to throw particular exceptions only?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!