Exception handling in C++ (How to handle errors in your program?)

Опубликовано: 26 Май 2021
на канале: CodeBeauty
98k
4k

Learn how to solve problems and build projects with these Free E-Books ⬇️
C++ Lambdas e-book - free download here:
Entire Object-Pascal step-by-step guide - free download here:

My Practical Programming Course:
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

Download Visual Assist here:
I use it to enhance the performance, features, and support for C, C and C++ development in Visual Studio.
Download Ultra Edit here:
It is a powerful, secure text editor designed specifically for programmers.

An exception in C++ usually represents an error (exceptional situation) that can happen during the execution of our program.
We use exception handling in order to handle those errors that can happen during the execution of our program.
In this video, I'll teach you how to handle errors in your program and how to work with exceptions on a real-life example.
You'll learn about keywords that are used to work with exceptions: try, catch and throw.
You'll also learn about different types of exception handlers and about default exception handler.

Create Modern Apps, 5x faster, with less code, Download FREE C++Builder Trial:

If you've found my content helpful and would like to support me, you now have the option to buy me a coffee or a cookie! It's a small gesture of gratitude that means a lot to me and helps me keep creating free educational videos for you. Use the link to make a contribution:
However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ️

Contents:
00:00 - What will you learn in this course?
02:03 - What are exceptions
08:36 - Throwing exceptions, throw keyword
11:00 - Fixing application crash with try-catch, handling exceptions
16:00 - Default exception handler
21:13 - Summary - C ++ exceptions explained in 2 minutes

Try building these apps:
Quiz app -
ATM app -
To-Do list app -

Learn about classes and Object-oriented programming:

Tag me on you Instagram stories:
Instagram -
Twitter -


Смотрите видео Exception handling in C++ (How to handle errors in your program?) онлайн без регистрации, длительностью 24 минут 46 секунд в хорошем hd качестве. Это видео добавил пользователь CodeBeauty 26 Май 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 98 тысяч раз и оно понравилось 4 тысяч людям.