Creating Custom C# Exception Types

New and old ways of creating your own exceptions in dotnet with C# 11 and .NET 7

Let’s talk about building custom exceptions in C# code and why you’d want to do that. We’ll cover the traditional way as well as a newer way you might want to do this using the required keyword in C# 11.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matt Eland

I help people love writing code through writing, speaking, and teaching on Software Engineering & Data Science