Beginner's Guide to Exception Handling in C#

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024
  • #dotnet #csharp #code #softwaredevelopment
    Exception handling is a core skill for any developer, but in .NET there are several best practices to ensure that your C# code runs as intended, handling unexpected behaviours.
    In this video:
    - We define what an exception is and how they are structured in .NET
    - I show you examples of how to catch exceptions
    - We explore the different types of exceptions
    - I show you how to create your own custom exceptions

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

  • @roskis6493
    @roskis6493 Год назад +1

    You're a great tutor, Nick. You have a calm and organized way of teaching. Thank you for the explanation.

  • @CodingMindsMadrid
    @CodingMindsMadrid 2 месяца назад

    youre the best nick! im waiting for new episodes!! keep going youre great!

  • @38clonewars
    @38clonewars Год назад

    First video of yours that I have watched, and I already LOVE IT and subbed!!! Your explanations are so clear. Thanks, man! Definitely checking your other tutorials soon

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

    Waiting for future episodes

  • @GBPhilip
    @GBPhilip Год назад +2

    When creating a custom exception you said it was best practice to create the three constructors. Why is it best practice?

    • @nickproudprogrammer
      @nickproudprogrammer  Год назад +2

      Explained here: www.csharptutorial.net/csharp-tutorial/csharp-custom-exceptions/

  • @flyingthundergod3999
    @flyingthundergod3999 4 месяца назад

    Do you know the difference between user thrown vs run time thrown exception by any chance