Exception handling is used as a fundamental error-reporting mechanism.
In the event of any errors during the method execution the exception derived from std::exception is thrown.
std::exception