C++ provides a list of standard exceptions defined in
which we can use in our programs.
std::bad_alloc
This can be thrown by new.
std::bad_cast
This can be thrown by dynamic_cast
std::range_error
std::range_error
This is occurred when you try to store a value which is out of range
No comments:
Post a Comment