paint-brush
7 best practices for exception handling in C++by@IndianWestCoast
1,191 reads
1,191 reads

7 best practices for exception handling in C++

by Vishal Chovatiya14mNovember 19th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Exception handling in C++ is a well-unschooled topic if you observe initial stages of the learning curve. Here, we will see some intricacies, from where & why you should not throw an exception along with some newer features introduced in Modern C++ on exception handling with example.com. We will also see the performance cost of using an exception by a quick benchmark code. Finally, we close the article with Best practices & some CPP Core Guidelines on exceptions handling. The exception object is an lvalue argument when initializing catch clause parameter.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - 7 best practices for exception handling in C++
Vishal Chovatiya HackerNoon profile picture
Vishal Chovatiya

Vishal Chovatiya

@IndianWestCoast

Software Developer⌨, Fitness Freak🏋, Geek🤓, Hipster🕴, Blogger👨‍💻, Productivity Hacker⌚

Learn More
LEARN MORE ABOUT @INDIANWESTCOAST'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Vishal Chovatiya HackerNoon profile picture
Vishal Chovatiya@IndianWestCoast
Software Developer⌨, Fitness Freak🏋, Geek🤓, Hipster🕴, Blogger👨‍💻, Productivity Hacker⌚

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here