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

preview_player
Показать описание
📚 Learn how to solve problems and build projects with these Free E-Books ⬇️

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.

I use it to enhance the performance, features, and support for C, C#, and C++ development in Visual Studio.
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.

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:

Tag me on you Instagram stories:
Рекомендации по теме
Комментарии
Автор

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
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.

CodeBeauty
Автор

PLEASE never delete your channel/videos!!

Your content is so useful

General_Boo
Автор

This channel is perfect for learning C++ in an organic and simple way.

OCEAN-fcwl
Автор

Hi Saldina, Thank you for spending your time creating video about C++. I'm not a CS student and not really good at programming but you help me pass C++ class. Now I also start to get interested to programming. I feel blessed that I found your channel, so please keep making videos like this:))

fachriyasir
Автор

I love listening to you because you are explaining everything in the easiest possible way, but also you are speaking very clearly and have nice voice!

GhanBuri
Автор

You have got amazing teaching skills.
You are the best than the teachers in university

multiplier
Автор

this channel single-handedly carried me through my freshman computer engineering year, seriously thank you keep doing this you're great! (:

carboqaddumi
Автор

I had a friend from Celic in Bosnia. You remind me of her. She is a teacher and you both have same personality. Maybe all Bosnian have same charming personality. Anyway your lessons on C++ are great for beginners.

rudrashiva
Автор

Thank you very much Saldina. The handing of these exceptions is indeed very very VERY useful and I am truly happy that I have learned so much about this topic. Greetings from

lukaadamovic
Автор

Saldina I don't know how you get the time to do all these videos but thank you so much for all the help you have given me I am loving programming thanks to your channel.
I think a great video you can do would be building a project like one that uses a user made form and a database etc. Any sort of real world application that one would be expected to make when in the field would be awesome!!!!
Again thank you so much for your incredible help in sharing your knowledge. I once read a post from a wise person he said that knowledge becomes wealth if it is shared freely but it becomes a weapon when it is kept by selfish people.
Thank you for spreading your riches and bettering humanity!!!

kinghadu
Автор

This channel is very perfect for learning C++ in an organic and simple way. she is teaching in very simple method
spacially thanks, Mam for providing very helpful knowledge

santoshsolanke
Автор

Big fan from india🇮🇳.
Ma'am your video help c++ language
a lot.
Thank you so so much.

rakshitsen
Автор

Hi Saldina, Thanks a lot for your effort in teaching C++. In this example, we can add one more print and demonstrate that fourth print will not get executed when third print got an exception.

ksprakashkumar
Автор

I can't thank you enough, you have a great method of explaining.

GlobStats
Автор

Your videos are so good that my professor takes your code and uses it for class lessons! Either that or you both code very similarly.

manoking
Автор

Hey Saldina!
I would really appreciate if you can make a detailed video on Operator Overloading including topics such as Fundamentals of Operator Overloading, Restrictions on Operators Overloading, Operator Functions as
Class Members vs. as Friend Functions, Overloading Unary Operators, Overloading Binary Operators,
Overloading of operators using friend functions.
Thanks!

preetichaudhari
Автор

I Just couldn't grasp try catch blocks until this video thank you.

denishnatiuk
Автор

Seriously, this is the best programming channel on youtube. U r awesome!

nicholasoneal
Автор

yoh, you saved me when i needed you most. thank you for your easy to follow and understand videos

lusandamtembu
Автор

This tutorial is very helpful for me. By many videos like this, I can learn not only coding but also English learning skill <3

phutrung
join shbcf.ru