Exception Handling | C++ Tutorial

  Рет қаралды 15,932

Portfolio Courses

Portfolio Courses

Күн бұрын

How to handle exceptions in C++, where exception handling is a technique for handling unwanted or unexpected events during program execution by throwing and catching exceptions. See a list of exception type derived classes as noted in the video here: en.cppreference.com/w/cpp/err.... Source code: github.com/portfoliocourses/c.... Check out www.portfoliocourses.com to build a portfolio that will impress employers!

Пікірлер: 26
@WicCaesar
@WicCaesar 2 ай бұрын
The first video that actually explained what was that goddamn e.
@AndreasAn
@AndreasAn 6 ай бұрын
Right now i am attending an advanced C++ Course at university. I have spent some time watching videos at youtube and most people explain exceptions while they are throwing int or strings and not objects which inherit from std::exception. Of course this will compile and work in smaller projects but when I need to code, there are bigger projects where I have to work with different developers. There you need to throw consistently to avoid weird crashes. I just wanted to mention that i watch explicitly this video as it shows catching a reference of an exception what other content creators are not doing. thanks for making serious content ^^
@joshisushant
@joshisushant Ай бұрын
The best video on exception handling for sure. Short 15 min, but covers almost everything !!
@programandoconian
@programandoconian 8 ай бұрын
This is the most straight forward tutorial for simple try and catch! Thanks
@lumguerra
@lumguerra 3 ай бұрын
Excellent video! Straight to the point, with different examples. Thank you!
@yigitcoban9823
@yigitcoban9823 Жыл бұрын
Thank you Mr. Kevin. It was quite efficient video for me.
@lucasgroves137
@lucasgroves137 Жыл бұрын
As always, useable information with no filler! 👍
@PortfolioCourses
@PortfolioCourses Жыл бұрын
Thank you for the positive feedback Lucas! :-)
@F.O.U.N.D.E.R
@F.O.U.N.D.E.R 4 ай бұрын
@@PortfolioCourses Thank you Mr.Kevin , love and praises from russia sir
@joymakerRC
@joymakerRC 9 ай бұрын
bro you are awesome, i watch your vids on 1.25x before and after i read the chapters. im crushing it .... many thanks
@Rojfos
@Rojfos 11 ай бұрын
You've explained it really well. Link to the cpp reference was also helpful. Thanks!
@PortfolioCourses
@PortfolioCourses 11 ай бұрын
I’m glad you enjoyed the explanation, and you’re welcome! :-)
@bakeery
@bakeery Жыл бұрын
Before searching i was hoping you made this video after adding chennal, the video show up, am so happy.
@PortfolioCourses
@PortfolioCourses Жыл бұрын
I’m glad to hear that Abubakar! :-) If you ever have ideas for topics that you think I should cover please let me know.
@AkshayRaj10
@AkshayRaj10 Жыл бұрын
Thanks for making these tutorials
@PortfolioCourses
@PortfolioCourses Жыл бұрын
You're welcome Akshay! :-)
@sukritiguin5637
@sukritiguin5637 Жыл бұрын
Great Tutorial.❤❤
@PortfolioCourses
@PortfolioCourses Жыл бұрын
I'm glad you enjoyed it Sukriti! :-)
@sabaresand7309
@sabaresand7309 6 ай бұрын
Hi sir, Thanks for this useful information could you explain why you used the virtual keyword in the "what" method during the custom exception implementation.
@bachoundaseddik250
@bachoundaseddik250 Ай бұрын
dont take it the wrong way but just asking because it was funny, did the source like a "book" you've learned from exception handling had "throw 20" as an example too?
@md.iqbalmahamudmoon3012
@md.iqbalmahamudmoon3012 Жыл бұрын
can you make some videos about dynamic and static type casting, it would be a big help
@technicalmaster-mind
@technicalmaster-mind Ай бұрын
Legend sir 🫡
@badassopenpolling
@badassopenpolling 5 ай бұрын
Where is the sample for - Exception handling in Deleting List of objects on heap ??????
@dopetag
@dopetag 2 ай бұрын
is `using namespace std;` not considered a bad practice?
@PortfolioCourses
@PortfolioCourses 2 ай бұрын
Using it in a library that is going to be re-used would be a bad practice, using it in a short program is not. This video explains why/when it is a bad practice: kzfaq.info/get/bejne/bs2Kgamllb-pin0.html
@dopetag
@dopetag Ай бұрын
@@PortfolioCourses thanks. I will give it a try!
Convert A String To An Int | C++ Tutorial
3:22
Portfolio Courses
Рет қаралды 9 М.
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 12 МЛН
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 53 МЛН
Member Initializer Lists | C++ Tutorial
23:10
Portfolio Courses
Рет қаралды 8 М.
Abstract Classes And Pure Virtual Functions | C++ Tutorial
11:05
Portfolio Courses
Рет қаралды 15 М.
The Exception Mistake You Must Never Make in C#
8:04
Nick Chapsas
Рет қаралды 42 М.
C++ switch structure
5:26
Heidi Gentry Kolen
Рет қаралды 35 М.
Dynamic Binding (Polymorphism) With The Virtual Keyword | C++ Tutorial
9:57
Cursed C++ Casts
17:41
Logan Smith
Рет қаралды 70 М.
new & delete Operators For Dynamic Memory Allocation | C++ Tutorial
15:52
Portfolio Courses
Рет қаралды 26 М.
how Google writes gorgeous C++
7:40
Low Level Learning
Рет қаралды 813 М.
are "smart pointers" actually smart?
9:44
Low Level Learning
Рет қаралды 71 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 287 М.
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 12 МЛН