Lesson 18: Throwing & Creating Custom Exceptions in C#
Sometimes you should throw your own custom exception. This is useful when you wish to add more information than the normal Exception class can provide.
Content
What is Exception Bubbling 00:00
Throwing an Exception in the Example Code 01:12
DEMO: Throw an Exception 02:04
Creating a User-Defined Exception 05:39
DEMO: Create a Custom Exception 06:43
DEMO: Throwing and Catching Your User-Defined Exception 10:05
Lesson Summary 12:49
You can get all the samples and hands-on labs for this course at https://www.pdsa.com/YouTube.
#exceptions #exceptionhandling #customexceptions #programming #csharp #dotnet #dotnetcore #dotnet6 #dotnet7 #dotnet8 #pauldsheriff #pluralsight #youtube
Paul.About()
Hello, my name is Paul D. Sheriff and I have a passion for teaching. I have been training developers for over 35 years through books, videos, article, blog posts, and international conferences and user groups.
Paul.Contact()
Website: https://www.pdsa.com
Email: [email protected]
LinkedIn: / paulsheriff
Blog: https://blogs.pdsa.com/
Pluralsight: https://app.pluralsight.com/profile/a...
YouTube Channel: @pauldsheriff