13 March 2019

c#basics exception try-catch-finally throw exceptions-settings

toop

We learned about Exceptions in .NET and the SystemException vs ApplicationException. we practiced the try-catch-finally block. we learned how to stop the program in debugger using the Exceptions-Settings. we learned the benefit of the StackTrace. and finally we used throw to initiate exceptions our selves

ex

More topics covered:

    • message field usage in self thrown exceptions
    • DivideByZeroException
    • Exceptions in arrays – IndexOutOfRangeException
    • Creating Exception object – new ExceptionClassName
    • Inner exception

Links:

Leave a comment

Design a site like this with WordPress.com
Get started