Creating Custom C# Exceptions in .NET 7 and C# 11

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 4

  • @MattEland
    @MattEland  2 года назад +1

    See newdevsguide.com/2022/11/20/custom-csharp-exceptions/ for more details and code.

  • @juda9954
    @juda9954 Год назад +3

    Great video! I was having this exact problem when trying to insert duplicate data into my database (stumbling upon the default MSSQL exception catch block, even though I put it there just in case my database connection was invalid). Like you said at the end, making your own exceptions gives you control over the logic behind it and over what you do and don't want to handle. +1 sub for me (:

  • @nouchance
    @nouchance 2 года назад +2

    Awesome 😎👍