Home » Interview » Technology

What is meant by exception specification?

Correct Answer: A function is limited to throwing only a specified list of exceptions.

Explanation:

C++ provides a mechanism to ensure that a given function is limited to throwing only a specified list of exceptions. It is called as exception specification.


← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion