What are the advantages of “throw.....catch” in C++?
Page 1 of 1
What are the advantages of “throw.....catch” in C++?
The following are the advantages of throw and catch in c++.
- Code isolation: All code that is to be handled when an exception raises is placed in the catch block, which is not part of the original code.
- The logic is pertaining to the type of the error, so that the developer can concentrate only on that exception.
- Developer can be selective about trapping various exceptions.
Similar topics
» When should a function throw an exception?
» What are the advantages of inheritance?
» What are the advantages of using friend classes?
» Advantages of inline functions
» Five Major Advantages Of Inbound Marketing
» What are the advantages of inheritance?
» What are the advantages of using friend classes?
» Advantages of inline functions
» Five Major Advantages Of Inbound Marketing
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|