Part 42 C# Tutorial Custom Exceptions in C#

preview_player
Показать описание
In this video we will learn
1. When to create custom exceptions
2. Creating a custom exception from the scratch
3. Throwing and catching the custom exception

Text version of the video

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.

Slides

All C# Text Articles

All C# Slides

Complete C# tutorial

All Dot Net and SQL Server Tutorials in English

All Dot Net and SQL Server Tutorials in Arabic
Рекомендации по теме
Комментарии
Автор

It's now been one week since I've started your tutorials, and not once have I used Google search for 'further explanation'. And so far, I'm understanding everything you are explaining. Thank You very much for your tutorials. Have a blessed day

kevinbester
Автор

In visual studio 22 exceptions are under: Debug > Windows > Exception Settings, for those who are doing it with a newer version. Great video as alwyas, I am loving this class. Thank you!

LA-dmkj
Автор

Venkat, it doesn't look like you ever did a tutorial on Serialization.  Can you add something regarding that subject?

rdg
Автор

You're awesome instructor! Very few people have this talent! you ought to be a teacher :)

saimhassan
Автор

This series is one of the best available on youtube.

ramaranjanruj
Автор

Thank you so much for wonderful seriously your tutorial means a lot for me keep

SuperAngelArora
Автор

Sure, I will upload WCF & WPF videos very soon. For email alerts, when new videos are uploaded, please subscribe to my channel. In the description of this video, I have included the link for ASP .NET, C#, and SQL Server playlists. All the videos are arranged in logical sequence in these playlists, which could be useful to you. Please share the link with your friends who you think would also benefit from them. If you like these videos, please click on the THUMBS UP button below the video.

Csharp-video-tutorialsBlogspot
Автор

My biggest fear is that one day you will remove all your videos from youtube.

offir
Автор

Great videos. not sure if this is really for beginners, but thanks for going so in depth

KaliGold
Автор

the concept is so concise, you can understand it very well thanks....

jertktv
Автор

First of all, THANKS a lot for such a detailed explanation in your tutorials, they have really helped me a lot.
I have just one question regarding this tutorial.
(Q) Will it make a difference if we inherit our UserDefinedException Class with ApplicationException class and not the base Exception class..?
In the study material provided to us from our college, they have inherited UserDefinedException Class with the ApplicationException and not the Exception class.
Which is a better way?  Kindly guide me. 

nirajasnani
Автор

Love your tutorial, very informative. I learn a lot from them and they're so enjoyable.. Thanx a lot!

gracesoares
Автор

Dear Venkat, in this video you explained how to create a custom exception with overloaded constructors and throw it manually from our program. How can we make our custom exception to throw automatically as the suitable event occurs like the FileNotFoundException thrown automatically if our program fails to locate a file?

BinuPortBlair
Автор

this is a good tutorial thanks for this it will benefits to my career

jertktv
Автор

instead of using the base keyword at 8:37, is it possible to just use the overrides keyword?

Solidgabe
Автор

Tips and tricks to create Custom Exception fast:
1. Type in your code: throw new MyOwnBeautifulException();
2. When is shows you error, stay with the cursor on your exception and push CTRL + . (dot)
3. Create Exception in new file.
It will get the attribute [Serializable] and contain all possible constructors automatically. It works in VS 2015, I do not know, how does it work in earlier editions.

Trzbne
Автор

include some proram like 
1. how can we make class library and implement it.
2. how can we read files

VermaInfotainment
Автор

Beautifully explained....just improve your audio quality

jayajaya
Автор

the point number 4 I get lost with Serializable but well i will put it no matter what just good to know lol

samduss