Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
115 / 187
Explain throwing mechanism briefly?
Answer:
When an exception that is desired to be handled is detected, it is thrown using throw statement in one of the following forms:
Throw(exception)
Throw exception;
Throw; // used for re-throwing an exception.
Asked In ::
Ranjana
23 Feb, 2019 5:07 AM
When an exception that is desired to be handled is detected, it is thrown using throw statement in one of the following forms:
Throw(exception)
Throw exception;
Throw; // used for re-throwing an exception.
Throw(exception)
Throw exception;
Throw; // used for re-throwing an exception.