Skip to Main Content
VB.Net Web Developer's Guide
book

VB.Net Web Developer's Guide

by Syngress
September 2001
Intermediate to advanced content levelIntermediate to advanced
608 pages
23h 46m
English
Syngress
Content preview from VB.Net Web Developer's Guide
.NET Programming Fundamentals • Chapter 5 211
Catch [exception [As type]] [When expression]
catchStatementsn]
[Finally
finallyStatements]
End Try
The Try keyword basically turns the exception handler on.This is code that
you believe is susceptible to errors and could cause an exception.The compound
statement following the Tr y keyword is the “guarded” section of code. If an
exception occurs inside the guarded code, it will throw an exception that can
then be caught, allowing your code to handle it appropriately.The Catch key-
word allows you to handle the exception.You can use multiple catch blocks to
handle specific exceptions.The type is a class filter ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

VB.NET Core Classes in a Nutshell

VB.NET Core Classes in a Nutshell

Budi Kurniawan, Ted Neward

Publisher Resources

ISBN: 9781928994480