Skip to Main Content
Building Applications and Components with Visual Basic .NET
book

Building Applications and Components with Visual Basic .NET

by Ted Pattison, Dr. Joe Hummel
October 2003
Intermediate to advanced content levelIntermediate to advanced
592 pages
13h 42m
English
Addison-Wesley Professional
Content preview from Building Applications and Components with Visual Basic .NET

The Fundamentals of Structured Exception Handling

An exception is a type of object that is used to report error conditions. A method can throw an exception to send a signal to the hosting application that something has gone wrong during program execution. The CLR itself will also throw an exception when it fails to perform a requested operation. When a method is executing and an exception occurs, the method is given a chance to catch the exception and branch off into contingency code that has been written to handle various kinds of error conditions.

Throwing and Catching Exceptions

Throwing an exception is the one and only official way to report an error condition in the .NET Framework. If you call a method and it does not throw an exception, ...

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

Visual Basic® .NET Power Coding

Visual Basic® .NET Power Coding

Paul Kimmel
Visual Basic 2015 Unleashed

Visual Basic 2015 Unleashed

Alessandro Del Sole
Programming in the .NET Environment

Programming in the .NET Environment

Damien Watkins, Mark Hammond, Brad Abrams

Publisher Resources

ISBN: 0201734958Purchase book