[C++] Error handling

2020. 9. 4. 23:38

throw 할 수 있는 exception 클래스의 hierarchy가 어떻게 되지?

https://en.cppreference.com/w/cpp/error/invalid_argument

 

std::invalid_argument - cppreference.com

Defines a type of object to be thrown as exception. It reports errors that arise because an argument value has not been accepted. This exception is thrown by std::bitset::bitset, and the std::stoi and std::stof families of functions. [edit] Member function

en.cppreference.com

ex) invalid argument

'<언어> > [C++]' 카테고리의 다른 글

[C++] 2-D array  (0) 2020.09.13
[C++] random generator  (0) 2020.09.10
[C++] iterator  (0) 2020.09.05
[C++] Lambda  (0) 2020.09.04
[C++] std::string  (0) 2020.08.31

+ Recent posts