Java Custom Exceptions Tutorial - It's Way Easier Than You Think

Java Custom Exceptions Tutorial - It's Way Easier Than You Think

Coding with John

1 год назад

147,108 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@preetamvarun9219
@preetamvarun9219 - 05.11.2023 19:26

Thank you!

Ответить
@Api_Kelenken-vj7pr
@Api_Kelenken-vj7pr - 22.10.2023 20:28

I did learn something. Namely, where those nasty 'caused by'-s come from.

Ответить
@Learn_IT_with_Azizul
@Learn_IT_with_Azizul - 13.10.2023 19:02

useful content... but I don't like ads, and thanks for time stamps

Ответить
@sudharshan32nft
@sudharshan32nft - 20.09.2023 07:37

Thanks John

Ответить
@rasZam
@rasZam - 17.09.2023 11:33

why did our custom exception extend Exception? why not RuntimeException?

Ответить
@eminbayram7993
@eminbayram7993 - 16.09.2023 11:15

too many stuff in this video. Didn't understand many things.

Ответить
@ineedtolearncybersecurity3397
@ineedtolearncybersecurity3397 - 14.09.2023 20:35

you soab

Ответить
@diegoi1313
@diegoi1313 - 08.09.2023 23:16

Thank you for this well informed video. I was able to complete my assignment after watching it.

Ответить
@sabei221b
@sabei221b - 28.08.2023 16:31

I'm obsessed with your content, amazing job!!

Ответить
@azamvlogs84
@azamvlogs84 - 18.08.2023 18:46

Anyone know which eclipse is he using??

Ответить
@SUMITYADAV-cy9hf
@SUMITYADAV-cy9hf - 15.07.2023 16:28

you made java so easy man ..thanks for your contribution

Ответить
@exitspree
@exitspree - 07.07.2023 03:58

Thanks!!

Ответить
@chetanraj1950
@chetanraj1950 - 26.06.2023 13:16

Thnak You for this lecture.

Ответить
@mustapharaimilawal8053
@mustapharaimilawal8053 - 19.06.2023 18:45

Hello John, thanks a lot for this video. I watched it some months ago and I missed some points you made about passing Throwable into the custom exception constructor but watching it again now made me realized how detailed this video is. Thanks a lot.

Ответить
@mohannadarslan2478
@mohannadarslan2478 - 18.06.2023 17:36

Thank you

Ответить
@KrigRaseri
@KrigRaseri - 16.06.2023 07:51

I love MailGun, they just can't send the lower receiver.

Ответить
@holdendewit7088
@holdendewit7088 - 25.05.2023 22:54

Wouldnt using super in the constructor invoke the constructor of the super class (that is to say effectively you have AgeLessThanZeroException e = new InvalidArgumentException(mes, cause); )? If thats the case is there any real benefit to making local object variables and methods instead?

Ответить
@lefruitcake
@lefruitcake - 11.05.2023 10:19

if you hadn't explained the extends RuntimeException part, wouldn't have saved me in a pinch! Thank you so much!

Ответить
@luwamabraham4338
@luwamabraham4338 - 21.04.2023 05:39

I don't now how to thank you. GBU

Ответить
@samuelbullon3792
@samuelbullon3792 - 03.04.2023 10:22

loved it

Ответить
@pipocosounds
@pipocosounds - 15.03.2023 21:56

Your channel is gold wow!

Ответить
@fcbarcatv-ou4ww
@fcbarcatv-ou4ww - 15.03.2023 05:50

ive been watching many of your video for the past 3 hours, youre an actual legend

Ответить
@kezug
@kezug - 05.03.2023 19:49

Is there an inherent overhead (performance degradation of the app) when using Exceptions and Custom Exception handling for "business" error handling as opposed to just putting in validations in code without exception handling? (Assume a large application with many business rules and just trying to come to terms with making a decision of when to use custom Exceptions for business validations vs never)

Ответить
@kamal-xd7id
@kamal-xd7id - 28.02.2023 11:18

By creating so many custom exceptions, wouldn't it be so unmanageable? Rather we use or define a little more generic or superclass of specific exceptions and pass in the details as param?

Ответить
@belayketema9921
@belayketema9921 - 19.02.2023 17:04

Wow

Ответить
@erezswickley2139
@erezswickley2139 - 18.02.2023 23:49

Amazing. You really helped me wrap my head around this concept. Thank you so much, I really appreciate it.

Ответить
@fatmamohmed58
@fatmamohmed58 - 22.01.2023 08:53

Before this video i was suffering with Exception but now i find it so easy thank you for your effort

Ответить
@SherisLeafyConversations
@SherisLeafyConversations - 20.01.2023 03:42

You are awesome!!!!!

Ответить
@MariusSipanu
@MariusSipanu - 18.01.2023 09:24

Very good video

Ответить
@aniolmalin
@aniolmalin - 16.01.2023 15:54

that runtime stuffe just solved me a task i thought is difficult, thanks

Ответить
@yasminaitmaksene5230
@yasminaitmaksene5230 - 10.01.2023 11:09

Hello John

I have a problem trying to use my custom exceptions.
In some places of my method , when I try to throw a new custom exception, I'm getting this error : Unhandled exception type myCustomException.
Eclipse suggest to add a try catch block to it.
Any idea why I'm getting this ?

Thank's

Ответить
@yasminaitmaksene5230
@yasminaitmaksene5230 - 08.01.2023 19:59

What a simple way to explain things ! Thank's a lot. 😁😁

Ответить
@DeepakSharma-mi8nz
@DeepakSharma-mi8nz - 07.01.2023 06:58

Hey John you are awesome

Ответить
@xxxguruji5211
@xxxguruji5211 - 21.12.2022 20:13

Thank you .

Ответить
@joelpww
@joelpww - 01.12.2022 02:21

God sent

Ответить
@Righteous_Companions
@Righteous_Companions - 26.11.2022 18:53

Thanks sir 😊 That was helpful 🙂
I was having trouble making custom exception, Thanks to this video finally its done

Ответить
@slimandahra4294
@slimandahra4294 - 03.11.2022 14:13

I will find out..i have eyes 👀 everywhere
That's funny 😂
Well done

Ответить
@abhijeettripathi5207
@abhijeettripathi5207 - 03.10.2022 21:25

Struggled with this topic for so long..... You're an amazing teacher 🙌🏻🙌🏻🙇‍♂️.... Thank you so much🙏🏻

Ответить
@paranormaledits9526
@paranormaledits9526 - 28.09.2022 12:14

Watching this before exam, you're a great teacher.

Ответить
@sidforreal
@sidforreal - 03.09.2022 21:56

Good to see you finally ditched eclipse 😛😛

Ответить
@jovictor3007
@jovictor3007 - 03.09.2022 16:21

Thanks, I thought exceptions were some magic, I didnt realise they were just classes.

Ответить
@thelinkguys2925
@thelinkguys2925 - 03.09.2022 06:37

Wish you have a full spring boot course!

Ответить
@Mahar4ja
@Mahar4ja - 20.08.2022 18:05

CSSE2002 anyone

Ответить
@edgardom.7455
@edgardom.7455 - 16.08.2022 17:53

Hi John, I recently discovered your channel, and I loved the way you expose the content. Learning to program when you are close to 50 years of age, is a much more affordable challenge with the help of channels like yours, thank you very much for your time and dedication. Greetings from Chile.

Ответить
@samreensaleemudeen1220
@samreensaleemudeen1220 - 14.08.2022 20:40

love the way you've explained this concept... I didn't learn this properly in C++ so ... I'm really happy that I could understand it so quickly... thank you so for that 😊

Ответить
@turuus5215
@turuus5215 - 13.08.2022 17:59

I'm reading "Java All in One for Dummies," and I had trouble wrapping my head around the "throwing exceptions" chapter. Thank you for clearing up my confusion. Your lessons are intuitive and straight to the point. Your delivery is amazing.

Ответить
@Speiger
@Speiger - 12.08.2022 00:42

I found that mojang used exceptions very weirdly.
If a network packet is in the wrong thread, they append it in a thread and basically throw a exception that does no logging to stop processing of said network packet.
(Ignoring the implication on how bad it is to throw hundreds of exception per second, it is still a really interesting concept)

Ответить
@jagathis2863
@jagathis2863 - 07.08.2022 13:39

Hii sir please upload the tic tac toe dynamic size java program?

Ответить
@keydiram
@keydiram - 07.08.2022 12:21

Hi, Can you add a Maven tutorial? Thanks.

Ответить