Thursday, 21 June 2018

C++ Exception


C++ provides a list of standard exceptions defined in 
 which we can use in our programs.


C++ Exceptions Hierarchy

std::bad_alloc



This can be thrown by new.

std::bad_cast
This can be thrown by dynamic_cast

std::range_error
This is occurred when you try to store a value which is out of range



No comments:

Post a Comment