Exception Handling | C++ Tutorial

Поділитися
Вставка
  • Опубліковано 4 лют 2025

КОМЕНТАРІ • 35

  • @AndreasAn
    @AndreasAn Рік тому +12

    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 ^^

  • @lumguerra
    @lumguerra 10 місяців тому +4

    Excellent video! Straight to the point, with different examples. Thank you!

  • @joshisushant
    @joshisushant 8 місяців тому +2

    The best video on exception handling for sure. Short 15 min, but covers almost everything !!

  • @programandoconian
    @programandoconian Рік тому +5

    This is the most straight forward tutorial for simple try and catch! Thanks

  • @sesarman
    @sesarman 3 місяці тому

    this was the best explanation explaining all scenarios without having to deep dive into other elements that we maybe unfamiliar with atm, thanks.

  • @lucasgroves137
    @lucasgroves137 Рік тому +9

    As always, useable information with no filler! 👍

    • @PortfolioCourses
      @PortfolioCourses  Рік тому +1

      Thank you for the positive feedback Lucas! :-)

    • @F.O.U.N.D.E.R
      @F.O.U.N.D.E.R 11 місяців тому

      @@PortfolioCourses Thank you Mr.Kevin , love and praises from russia sir

  • @Rojfos
    @Rojfos Рік тому +3

    You've explained it really well. Link to the cpp reference was also helpful. Thanks!

    • @PortfolioCourses
      @PortfolioCourses  Рік тому +2

      I’m glad you enjoyed the explanation, and you’re welcome! :-)

  • @yigitcoban9823
    @yigitcoban9823 Рік тому +5

    Thank you Mr. Kevin. It was quite efficient video for me.

  • @joymakerRC
    @joymakerRC Рік тому

    bro you are awesome, i watch your vids on 1.25x before and after i read the chapters. im crushing it .... many thanks

  • @WicCaesar
    @WicCaesar 9 місяців тому +27

    The first video that actually explained what was that goddamn e.

    • @phantomgaming541
      @phantomgaming541 3 місяці тому

      true

    • @sesarman
      @sesarman 3 місяці тому

      i think it stands for exception haha, i've seen other objects used such as excpt, but when I use anything but e i get an error that it was not declared.

  • @AssemJoestar
    @AssemJoestar 6 місяців тому

    Thank you very much, your video was very informtional and straight to the point, also your method of explenation is phenominal.

    • @PortfolioCourses
      @PortfolioCourses  6 місяців тому

      You’re welcome, I’m glad you liked the style of content! :-)

  • @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.

  • @anasjawad-h4t
    @anasjawad-h4t 28 днів тому

    all 1337 students are rooting for your c++ tutorials

  • @desvendandoornasaude4127
    @desvendandoornasaude4127 5 місяців тому

    The beauty of C++!

  • @michaczarnocki181
    @michaczarnocki181 2 місяці тому

    awesome video, what program do you use to write c++ in this video? Looks very clean and tidy

  • @bachoundaseddik250
    @bachoundaseddik250 8 місяців тому +2

    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?

  • @sabaresand7309
    @sabaresand7309 Рік тому

    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.

  • @sukritiguin5637
    @sukritiguin5637 Рік тому +2

    Great Tutorial.❤❤

  • @AkshayRaj10
    @AkshayRaj10 Рік тому

    Thanks for making these tutorials

  • @technicalmaster-mind
    @technicalmaster-mind 8 місяців тому

    Legend sir 🫡

  • @md.iqbalmahamudmoon3012
    @md.iqbalmahamudmoon3012 Рік тому

    can you make some videos about dynamic and static type casting, it would be a big help

  • @badassopenpolling
    @badassopenpolling Рік тому

    Where is the sample for - Exception handling in Deleting List of objects on heap ??????

  • @dopetag
    @dopetag 8 місяців тому

    is `using namespace std;` not considered a bad practice?

    • @PortfolioCourses
      @PortfolioCourses  8 місяців тому

      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: ua-cam.com/video/8gZNFt0YEZI/v-deo.html

    • @dopetag
      @dopetag 8 місяців тому

      @@PortfolioCourses thanks. I will give it a try!

  • @uomolercio
    @uomolercio 5 місяців тому

    e 3:35