Exception Handling | C# | Tutorial 24

  Рет қаралды 89,735

Giraffe Academy

Giraffe Academy

Күн бұрын

Пікірлер: 122
@thugerrish
@thugerrish 6 жыл бұрын
This series deserves so many more views than this!
@Ryan_Parmelee
@Ryan_Parmelee 6 жыл бұрын
Yep
@imagine9616
@imagine9616 4 жыл бұрын
yes
@clarissagonzales7014
@clarissagonzales7014 5 жыл бұрын
Clear and straight to the point! Even non-programmers can understand this. Thank you so much!!
@shonshon
@shonshon 4 жыл бұрын
well, if you' re learning about how to programming ,then it is also mean that you're already programmer isn't? xD
@quantomic1106
@quantomic1106 4 жыл бұрын
Straight, informative and to the point. No BS exception caught. Love your tutorials.
@ManuelGraphFilms
@ManuelGraphFilms 4 жыл бұрын
2:55 my guy said illegal hahaha.. you just gained a new sub man
@knockedgoose4206
@knockedgoose4206 2 жыл бұрын
You are a mentor to a fledgling programmer such as myself. Thank you for making these concepts easy to digest!
@sinapazhwak8976
@sinapazhwak8976 3 жыл бұрын
I wish you were my professor for my entire programming and web-designing studies.
@armanbecirovic2238
@armanbecirovic2238 2 жыл бұрын
Thanks for this very useful and simplified explanation. Really like the way you easily explain and present something. :)
@joshuabharath6774
@joshuabharath6774 3 жыл бұрын
every since college ive just been listening to your video and its so simple to understand unlike those other C# video lol
@olmusic7856
@olmusic7856 2 жыл бұрын
great explaniation bro tnx alot
@austinnotes7906
@austinnotes7906 3 жыл бұрын
Man I'm writing Programming tomorrow and this has made me feel so much at at ease about Exception Handling
@cristinemariel.teruel5161
@cristinemariel.teruel5161 4 жыл бұрын
Thank you, Mike! I understand the topic well and I answer my exercises correctly. I can pass my OOP subject already!!
@piki217
@piki217 3 жыл бұрын
The best tutorial video i have seen yet
@study-zl3it
@study-zl3it 2 жыл бұрын
Hi! I'm studying for my finals and your videos are really helpful, thank you!
@SweetPeachannel
@SweetPeachannel 2 жыл бұрын
i do love your video ..
@Saskamon
@Saskamon 3 жыл бұрын
Everytime I see this guy, I can tell for sure that I will learn something. Greath thanks!
@HardstylezSuperstaar
@HardstylezSuperstaar 4 жыл бұрын
I do wonder how old are you? This dude seems to be some super programmer. I just learn to program in swedish and my school gives me swedish sites to follow. But after I found this dudes videos im in here every day to learn. This should be used by all schools in Programming.
@weebofthesouth4113
@weebofthesouth4113 3 жыл бұрын
"That's illegal!" LOL that made me laugh. Thank you for this video I have an assignment due tonight and this helped me a lot.
@Ayomidejoshuah
@Ayomidejoshuah 2 жыл бұрын
your videos are really great, watching your videos made me understand c sharp better✊✊
@ЕренБояджъ
@ЕренБояджъ 3 жыл бұрын
This 10 min vid helped me more than the book i was reading. Thanks for the help man
@upcom1ng116
@upcom1ng116 3 жыл бұрын
What were you reading? So I don't buy it lol
@bonganisedibe4636
@bonganisedibe4636 5 жыл бұрын
far better than my lecture! Thanks Man
@futuregeneration8348
@futuregeneration8348 2 жыл бұрын
Your way of teaching is great thank you so much
@stoka43
@stoka43 3 жыл бұрын
Thanks mike, you have just got yourself a new subscriber
@mubeenhassan2387
@mubeenhassan2387 5 жыл бұрын
Thank you so much man.. Finally i understand this ...... keep going man
@abdelrahmanmohamedowis7619
@abdelrahmanmohamedowis7619 9 ай бұрын
Thank You
@gargoyled_drake
@gargoyled_drake 4 жыл бұрын
i was looking for this, and no one could give a straight answer like you!
@jinju3785
@jinju3785 3 жыл бұрын
dude now i know how to find bugs and errors easily thank you so much❤️❤️
@fcolell
@fcolell 4 жыл бұрын
Thanks Mike for explaining so clearly exception
@otetumooluwaseun3948
@otetumooluwaseun3948 9 ай бұрын
Wow! Amazing! I asked for a cake, I got a whole supermarket. Thank you for the video.
@guywnoname
@guywnoname 2 жыл бұрын
straight to the point and very clear and i understood it very well 👍
@muhammadrizwanmalik8956
@muhammadrizwanmalik8956 Жыл бұрын
very clear to unerstand! thanks
@sadeghmirzaee8258
@sadeghmirzaee8258 4 жыл бұрын
OMG, man! you throw me some information that is so much useful to me and now I don't have to plan to watch a complete C# intermadiate/advanced tutorial. ( mean that part that you can catch a specific exception type and to something with that, that is like if statements for exceptions. ) Tnx for that...
@MrJo0ntee
@MrJo0ntee 2 жыл бұрын
I really love your videos! Im currently taking programming on a highschool level, and my teacher has theese videos, they suck! this video would probobly, not gonna lie, be 40min long! becouse he types with one finger, does misprints and talk so slow. So having theese to look at insted is so good! Thanks!
@alexfila2619
@alexfila2619 3 жыл бұрын
thanks man, you are great, explained in first 60 sec all I was trying to understand about exceptions. Like!
@usaamahpatel9577
@usaamahpatel9577 3 жыл бұрын
Watching this in 2021. Absolutely wonderful explanation!!!
@Rd.2535
@Rd.2535 Жыл бұрын
this is what i love and what i went good teaching style
@tripernnn5581
@tripernnn5581 3 жыл бұрын
This was so easy to understand even though im am austrian.....great explanation
@davidksoku4860
@davidksoku4860 3 жыл бұрын
I love you Man, You are a great teacher ❤️💛💚
@milos1799
@milos1799 3 жыл бұрын
I'm a bit late, but king, for this turorial, thank you very much!
@arrensantos4869
@arrensantos4869 4 жыл бұрын
Hi Mike! I've been looking for a clean explanation of try-catch block and this one was THE BEST so far!!! Thanks a LOT!!! Any chance you can add an explanation about the throw keyword? If there already is, please direct me to it. Also, is there any particular order when laying out catch blocks for multiple exceptions?
@dariorud
@dariorud 3 жыл бұрын
Brilliant video!
@scottisitt
@scottisitt 4 жыл бұрын
This was awesome, Mike!
@gallacticvr4157
@gallacticvr4157 2 жыл бұрын
EXACTLY WHAT I NEEDED THANK YOU
@rayoh2011
@rayoh2011 4 жыл бұрын
Very nice Mike! Thank you!
@llamadrama169
@llamadrama169 4 ай бұрын
Great video, thanks
@EmmyCodes-d9n
@EmmyCodes-d9n 11 ай бұрын
Loved it!
@alkam0421
@alkam0421 5 жыл бұрын
I FINALLY UNDERSTAND! thank you so much :')
@rostadeveloper
@rostadeveloper 3 жыл бұрын
Really nice video! Thumbs up!
@rsk6929
@rsk6929 3 жыл бұрын
This paired with the goto function works amazingly. i wish we had goto in python
@thegoodkidboy7726
@thegoodkidboy7726 2 жыл бұрын
kowai
@rsk6929
@rsk6929 2 жыл бұрын
@@thegoodkidboy7726 ?
@thegoodkidboy7726
@thegoodkidboy7726 2 жыл бұрын
@@rsk6929 people don't like goto very much
@rsk6929
@rsk6929 2 жыл бұрын
@@thegoodkidboy7726 ok, why
@simplycoding347
@simplycoding347 Жыл бұрын
Great work
@Jason-mi3nu
@Jason-mi3nu 3 жыл бұрын
Helped me understand it and use it Thx
@thanhhaminh9383
@thanhhaminh9383 3 жыл бұрын
this video is very clearly, thank you
@xtrinsicdesign
@xtrinsicdesign 4 жыл бұрын
Really helped me out tonight, ty
@北科大-蘇詳崴
@北科大-蘇詳崴 2 жыл бұрын
Thank you teacher!
@milestailsprower4555
@milestailsprower4555 5 ай бұрын
i also handle too to prevent some proogram quit on unhandled ones.
@athariealfuraih8115
@athariealfuraih8115 4 жыл бұрын
Great explanation! Thank you so much
@mweshiols
@mweshiols Жыл бұрын
thanks this was well explained
@adrianasilveira4561
@adrianasilveira4561 4 жыл бұрын
Great explanation. Thank you
@triangle4studios
@triangle4studios 4 жыл бұрын
This was exceptional
@trumbaron
@trumbaron 2 жыл бұрын
Perfect! Thanks!
@lovegeneration8464
@lovegeneration8464 3 жыл бұрын
Well explained, thank you 🙂 👍
@tomslater8374
@tomslater8374 3 жыл бұрын
super clear and helpful, thank you!
@hamzarashid7579
@hamzarashid7579 4 жыл бұрын
Thank you for this video
@Ethan-xj7hb
@Ethan-xj7hb Жыл бұрын
ty my bro helped me a ton
@Hikizuru
@Hikizuru 3 жыл бұрын
Bro. So good.
@abdelkiki
@abdelkiki 4 жыл бұрын
Thank you so much
@aviperetz1
@aviperetz1 3 жыл бұрын
Thanks 👌👍
@u_mpumelelo
@u_mpumelelo 8 ай бұрын
Thank you bro
@dougwarner59
@dougwarner59 3 жыл бұрын
First off the video was very informative and easy to understand....but.... I still don't understand the point of handling exceptions in the way you describe. exception handling takes up a lot more time than just checking for the errors the normal way. it would be more efficient just to check to see if the second value is a zero or a letter before preforming the code and then let the user know the mistake he or she made. In this particular case I could see possibly using a general exception to catch an error that I may not have thought of; then have the exception send a message telling where exactly the problem occured for trouble shooting purposes. Could you give an example of using exception handling when normal error checking would not be able to handle the same problem? (other than using a catch-all general exception as I described earlier.)
@xSAxHellboy1
@xSAxHellboy1 4 жыл бұрын
Great video man
@eonshade6297
@eonshade6297 3 жыл бұрын
Good tutorial
@Sir_Smax007
@Sir_Smax007 3 жыл бұрын
Truly wish you're my teacher
@dudem5447
@dudem5447 5 жыл бұрын
awesome, man, thanks!
@redeyz1885
@redeyz1885 3 жыл бұрын
Thanks
@HaydenHeun
@HaydenHeun 5 жыл бұрын
Thank You!
@hydarnasiru2158
@hydarnasiru2158 4 жыл бұрын
let's say you enter a number and a letter how can throw an exception then make the code loop back to the beginning so you can try again without ending the program?
@DailyFactmerit
@DailyFactmerit 3 жыл бұрын
Thanks sir
@jasmin9943
@jasmin9943 4 жыл бұрын
you are awesome thank you for the video !!
@PopCapMusicTrending
@PopCapMusicTrending 2 жыл бұрын
Thank you
@gdj777
@gdj777 4 жыл бұрын
Mike! Come back!
@simplyjemelah8276
@simplyjemelah8276 3 жыл бұрын
hi do you have a video for C# System.ArithmeticException?
@matinaminsabouri
@matinaminsabouri Жыл бұрын
nice and neat
@marklitvin9291
@marklitvin9291 4 жыл бұрын
But what about letting the user re-enter the values once again? I did miss that part. Where was it? After the exception was shown.
@jarell2805
@jarell2805 2 жыл бұрын
How to catch an exception in an a, b, c, and d input only? How to catch numbers and texts such as w,q, t or r
@mastinaatumasala
@mastinaatumasala 3 жыл бұрын
Super
@SuperTNT
@SuperTNT 2 жыл бұрын
thanks!
@nandorbacso4625
@nandorbacso4625 5 жыл бұрын
Thank you man
@sariepproduction4146
@sariepproduction4146 2 жыл бұрын
Thanks bruh
@naziayameen9755
@naziayameen9755 3 жыл бұрын
thnku
@manoasankad
@manoasankad 4 жыл бұрын
Tx
@kunaldedhia5502
@kunaldedhia5502 3 жыл бұрын
How can i handle exceptions globally in console applications? Please help
@JC-xc8rx
@JC-xc8rx 6 жыл бұрын
excelent!
@janaewelsh8056
@janaewelsh8056 4 жыл бұрын
Can someone explain what the e represents? Is it a variable? Does it have to be the letter e or could it be any other letter? Not sure what purpose it serves in the code exactly
@baradel9394
@baradel9394 4 жыл бұрын
"e" is an object of type Exception or any other one of the types that were in the catch block. Basically, it has all the error information inside of it, such as an error message (e.Message) or the current stack trace (e.Stacktrace). It could have been called any other name, but as convention it usually is called "e" or "ex"
@sofianebm7492
@sofianebm7492 4 жыл бұрын
i enjoyed it , so i am leaving a comment XD
@jakeogsimer9445
@jakeogsimer9445 4 жыл бұрын
I want the program to ask again for the user's input after the error message prints out on the catch. How can you do that?
@mikellwilliams6095
@mikellwilliams6095 4 жыл бұрын
You can make a bool variable named something like "response" that starts off FALSE. Then, a do-while loop that contains your try-catch which contains your question and input prompts. It will loop while(response = false) If everything goes well and dandy and the user has correct inputs... then the last line of code after your prompts is response = true; and the do while condition will fail and exit the loop. But if the user enters something that breaks the code, then the exception is caught and response is never set to true. So the do-while will keep asking the question. Until the user answers it right.
@mikellwilliams6095
@mikellwilliams6095 4 жыл бұрын
bool response = false; do{ try{ // Your Questions and Inputs response = true; }catch(Exception e) // Whatever you want to do with your exception } }while(response == false)
@lancelotxiii9089
@lancelotxiii9089 4 жыл бұрын
@@mikellwilliams6095 Bless you! This is exactly what I came here for!
@chamith256
@chamith256 4 жыл бұрын
What is the difference between Write and WriteLine?
@franciscrypto9143
@franciscrypto9143 2 жыл бұрын
same with if else statement?
@praveenbhawantha
@praveenbhawantha 4 жыл бұрын
just wanna say it's great and simple kudos man!!
@smartacc8745
@smartacc8745 2 жыл бұрын
Hello Mike How Are You Bro ?
@cptsnorkles1037
@cptsnorkles1037 4 жыл бұрын
Auto sub
@aminkoolivand2790
@aminkoolivand2790 5 жыл бұрын
one like is not enough!!!!!!!!!!!!
Classes & Objects | C# | Tutorial 25
13:25
Giraffe Academy
Рет қаралды 179 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Dominando o GitHub Copilot no VSCode
1:07:43
DIO
Рет қаралды 769
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,3 МЛН
Getters & Setters | C# | Tutorial 28
12:09
Giraffe Academy
Рет қаралды 197 М.
Beginner's Guide to Exception Handling in C#
29:46
Nick Proud
Рет қаралды 5 М.
Advanced Exception Handling in Python
12:06
NeuralNine
Рет қаралды 70 М.
C# Tutorial for Beginners 8 : Error handling (Try Catch Finally)
11:41
JackedProgrammer
Рет қаралды 3,5 М.
C# exception handling ⚠️
5:01
Bro Code
Рет қаралды 47 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 921 М.
The Exception Mistake You Must Never Make in C#
8:04
Nick Chapsas
Рет қаралды 46 М.
Inheritance | C# | Tutorial 31
10:29
Giraffe Academy
Рет қаралды 59 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН