This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
programming:cpp:exception [2022/05/05 07:33] odagawa |
programming:cpp:exception [2022/05/05 11:09] (current) odagawa |
||
---|---|---|---|
Line 23: | Line 23: | ||
throw std:: | throw std:: | ||
- | } catch ( std:: | + | } catch ( const std:: |
std::cerr << error.what() << std::endl; | std::cerr << error.what() << std::endl; | ||
std:: | std:: | ||
- | } catch ( std:: | + | } catch ( const std:: |
std::cerr << error.what() << std::endl; | std::cerr << error.what() << std::endl; | ||
std:: | std:: |