Intermediate VB.NET Programming Lesson 9. Exception Handling
Computer Science Computer Science
206K subscribers
10,803 views
0

 Published On Apr 3, 2022

This is the ninth in a series of computer science video tutorials for intermediate Visual Basic programmers who have completed the beginner’s series of video tutorials or are already familiar with the VB.NET syntax for the fundamental programming constructs. In this lesson you will learn about run time errors, also known as exceptions, and how to handle them in your code. It is an important aspect of defensive programming to anticipate exceptions, trap them, and handle them appropriately because an exception will cause a program to crash. You will see examples of various types of exception and you will learn how to use a Try Catch Finally block to deal with them should they occur.

Chapters:
00:00 Syntax, runtime and logical errors
01:48 System.OverflowException
02:48 System.DivideByZeroException
03:12 System.InvalidCastException
04:38 System. NullReferenceException
05:54 System.IndexOutOfRangeException
07:05 Try Catch block
10:24 Multiple Catch blocks
12:05 Finally
13:27 Good practice

show more

Share/Embed