Exception Handling | C# | Tutorial 24

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

Giraffe Academy

Giraffe Academy

Күн бұрын

Пікірлер: 122
@thugerrish
@thugerrish 6 жыл бұрын
This series deserves so many more views than this!
@Ryan_Parmelee
@Ryan_Parmelee 5 жыл бұрын
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!
@armanbecirovic2238
@armanbecirovic2238 2 жыл бұрын
Thanks for this very useful and simplified explanation. Really like the way you easily explain and present something. :)
@sinapazhwak8976
@sinapazhwak8976 3 жыл бұрын
I wish you were my professor for my entire programming and web-designing studies.
@piki217
@piki217 2 жыл бұрын
The best tutorial video i have seen yet
@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 Жыл бұрын
great explaniation bro tnx alot
@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!!
@futuregeneration8348
@futuregeneration8348 2 жыл бұрын
Your way of teaching is great thank you so much
@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.
@otetumooluwaseun3948
@otetumooluwaseun3948 8 ай бұрын
Wow! Amazing! I asked for a cake, I got a whole supermarket. Thank you for the video.
@Saskamon
@Saskamon 3 жыл бұрын
Everytime I see this guy, I can tell for sure that I will learn something. Greath thanks!
@mubeenhassan2387
@mubeenhassan2387 4 жыл бұрын
Thank you so much man.. Finally i understand this ...... keep going man
@bonganisedibe4636
@bonganisedibe4636 4 жыл бұрын
far better than my lecture! Thanks Man
@study-zl3it
@study-zl3it 2 жыл бұрын
Hi! I'm studying for my finals and your videos are really helpful, thank you!
@stoka43
@stoka43 2 жыл бұрын
Thanks mike, you have just got yourself a new subscriber
@Ayomidejoshuah
@Ayomidejoshuah 2 жыл бұрын
your videos are really great, watching your videos made me understand c sharp better✊✊
@fcolell
@fcolell 4 жыл бұрын
Thanks Mike for explaining so clearly exception
@guywnoname
@guywnoname Жыл бұрын
straight to the point and very clear and i understood it very well 👍
@austinnotes7906
@austinnotes7906 3 жыл бұрын
Man I'm writing Programming tomorrow and this has made me feel so much at at ease about Exception Handling
@ЕренБояджъ
@ЕренБояджъ 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
@tripernnn5581
@tripernnn5581 3 жыл бұрын
This was so easy to understand even though im am austrian.....great explanation
@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!
@usaamahpatel9577
@usaamahpatel9577 3 жыл бұрын
Watching this in 2021. Absolutely wonderful explanation!!!
@alexfila2619
@alexfila2619 3 жыл бұрын
thanks man, you are great, explained in first 60 sec all I was trying to understand about exceptions. Like!
@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...
@jinju3785
@jinju3785 3 жыл бұрын
dude now i know how to find bugs and errors easily thank you so much❤️❤️
@gargoyled_drake
@gargoyled_drake 4 жыл бұрын
i was looking for this, and no one could give a straight answer like you!
@SweetPeachannel
@SweetPeachannel 2 жыл бұрын
i do love your video ..
@milos1799
@milos1799 2 жыл бұрын
I'm a bit late, but king, for this turorial, thank you very much!
@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.
@Rd.2535
@Rd.2535 Жыл бұрын
this is what i love and what i went good teaching style
@rostadeveloper
@rostadeveloper 3 жыл бұрын
Really nice video! Thumbs up!
@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?
@rayoh2011
@rayoh2011 4 жыл бұрын
Very nice Mike! Thank you!
@scottisitt
@scottisitt 4 жыл бұрын
This was awesome, Mike!
@dariorud
@dariorud 3 жыл бұрын
Brilliant video!
@davidksoku4860
@davidksoku4860 3 жыл бұрын
I love you Man, You are a great teacher ❤️💛💚
@thanhhaminh9383
@thanhhaminh9383 3 жыл бұрын
this video is very clearly, thank you
@athariealfuraih8115
@athariealfuraih8115 3 жыл бұрын
Great explanation! Thank you so much
@xtrinsicdesign
@xtrinsicdesign 3 жыл бұрын
Really helped me out tonight, ty
@gallacticvr4157
@gallacticvr4157 2 жыл бұрын
EXACTLY WHAT I NEEDED THANK YOU
@alkam0421
@alkam0421 4 жыл бұрын
I FINALLY UNDERSTAND! thank you so much :')
@milestailsprower4555
@milestailsprower4555 4 ай бұрын
i also handle too to prevent some proogram quit on unhandled ones.
@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.)
@Jason-mi3nu
@Jason-mi3nu 3 жыл бұрын
Helped me understand it and use it Thx
@tomslater8374
@tomslater8374 3 жыл бұрын
super clear and helpful, thank you!
@adrianasilveira4561
@adrianasilveira4561 3 жыл бұрын
Great explanation. Thank you
@llamadrama169
@llamadrama169 2 ай бұрын
Great video, thanks
@triangle4studios
@triangle4studios 4 жыл бұрын
This was exceptional
@lovegeneration8464
@lovegeneration8464 3 жыл бұрын
Well explained, thank you 🙂 👍
@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
@abdelrahmanmohamedowis7619
@abdelrahmanmohamedowis7619 7 ай бұрын
Thank You
@EmmyCodes-d9n
@EmmyCodes-d9n 9 ай бұрын
Loved it!
@xSAxHellboy1
@xSAxHellboy1 4 жыл бұрын
Great video man
@simplycoding347
@simplycoding347 Жыл бұрын
Great work
@simplyjemelah8276
@simplyjemelah8276 3 жыл бұрын
hi do you have a video for C# System.ArithmeticException?
@mweshiols
@mweshiols Жыл бұрын
thanks this was well explained
@Ethan-xj7hb
@Ethan-xj7hb Жыл бұрын
ty my bro helped me a ton
@jasmin9943
@jasmin9943 4 жыл бұрын
you are awesome thank you for the video !!
@北科大-蘇詳崴
@北科大-蘇詳崴 2 жыл бұрын
Thank you teacher!
@dudem5447
@dudem5447 5 жыл бұрын
awesome, man, thanks!
@Sir_Smax007
@Sir_Smax007 3 жыл бұрын
Truly wish you're my teacher
@hamzarashid7579
@hamzarashid7579 4 жыл бұрын
Thank you for this video
@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
@Hikizuru
@Hikizuru 3 жыл бұрын
Bro. So good.
@trumbaron
@trumbaron 2 жыл бұрын
Perfect! Thanks!
@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?
@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.
@eonshade6297
@eonshade6297 3 жыл бұрын
Good tutorial
@gdj777
@gdj777 4 жыл бұрын
Mike! Come back!
@kunaldedhia5502
@kunaldedhia5502 2 жыл бұрын
How can i handle exceptions globally in console applications? Please help
@aviperetz1
@aviperetz1 3 жыл бұрын
Thanks 👌👍
@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"
@HaydenHeun
@HaydenHeun 4 жыл бұрын
Thank You!
@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!
@franciscrypto9143
@franciscrypto9143 2 жыл бұрын
same with if else statement?
@chamith256
@chamith256 4 жыл бұрын
What is the difference between Write and WriteLine?
@abdelkiki
@abdelkiki 4 жыл бұрын
Thank you so much
@nandorbacso4625
@nandorbacso4625 5 жыл бұрын
Thank you man
@u_mpumelelo
@u_mpumelelo 7 ай бұрын
Thank you bro
@sofianebm7492
@sofianebm7492 3 жыл бұрын
i enjoyed it , so i am leaving a comment XD
@DailyFactmerit
@DailyFactmerit 3 жыл бұрын
Thanks sir
@PopCapMusicTrending
@PopCapMusicTrending 2 жыл бұрын
Thank you
@matinaminsabouri
@matinaminsabouri Жыл бұрын
nice and neat
@praveenbhawantha
@praveenbhawantha 3 жыл бұрын
just wanna say it's great and simple kudos man!!
@naziayameen9755
@naziayameen9755 3 жыл бұрын
thnku
@redeyz1885
@redeyz1885 3 жыл бұрын
Thanks
@JC-xc8rx
@JC-xc8rx 6 жыл бұрын
excelent!
@mastinaatumasala
@mastinaatumasala 3 жыл бұрын
Super
@SuperTNT
@SuperTNT Жыл бұрын
thanks!
@sariepproduction4146
@sariepproduction4146 2 жыл бұрын
Thanks bruh
@smartacc8745
@smartacc8745 2 жыл бұрын
Hello Mike How Are You Bro ?
@manoasankad
@manoasankad 4 жыл бұрын
Tx
@cptsnorkles1037
@cptsnorkles1037 4 жыл бұрын
Auto sub
@aminkoolivand2790
@aminkoolivand2790 5 жыл бұрын
one like is not enough!!!!!!!!!!!!
Classes & Objects | C# | Tutorial 25
13:25
Giraffe Academy
Рет қаралды 178 М.
Beginner's Guide to Exception Handling in C#
29:46
Nick Proud
Рет қаралды 4,7 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Getters & Setters | C# | Tutorial 28
12:09
Giraffe Academy
Рет қаралды 196 М.
Advanced Exception Handling in Python
12:06
NeuralNine
Рет қаралды 68 М.
Exception Handling | C++ Tutorial
14:49
Portfolio Courses
Рет қаралды 22 М.
Exception Handling in Java Tutorial
13:20
Coding with John
Рет қаралды 428 М.
While Loops | C# | Tutorial 18
9:10
Giraffe Academy
Рет қаралды 46 М.
The Exception Mistake You Must Never Make in C#
8:04
Nick Chapsas
Рет қаралды 45 М.
Constructors | C# | Tutorial 26
10:29
Giraffe Academy
Рет қаралды 88 М.
Inheritance | C# | Tutorial 31
10:29
Giraffe Academy
Рет қаралды 59 М.
C# exception handling ⚠️
5:01
Bro Code
Рет қаралды 44 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН