Home > Microsoft .Net Development Tips > .NET Developer > Learn exception handling
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

.NET DEVELOPER

Learn exception handling


Jack Vaughan
05.16.2005
Rating: -1.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


There is no question that Visual Basic and other developers must learn new techniques to work in object-oriented environments such as .NET. With .NET and its associated Common Language Runtime [CLR], one such useful mechanism is exception handling.

Author, consultant and educator Jeffrey Richter recently spoke to SearchVB.com readers on just this topic. Richter is cofounder of Wintellect, one of the top firms teaching .NET and related technologies. He told site members that .NET exception handling has many benefits, including improved performance and easier debugging. Most importantly, CLR errors are reported via exceptions. And exceptions can't be ignored.

For developers versed in Win32 and COM, exception handling as applied to the CLR is a new thing, and there is no real workaround. With the earlier technologies, said Richter, Microsoft did not standardize on exceptions, feeling that the technique was too foreign to too many developers. The Common Language Specification (CLS) specifies that all languages must use exception handling, and it can be a handy means to create what Richter describes as "robust, maintainable object-oriented code."

Richter's presentation on exception handling is filled with examples. He teaches you the basics of creating your own custom exceptions, and he can guide you through the ins and outs of exception throwing, reporting, and the like, as well as depicting how exception frame blocks work. Check out the Webcast!


Rate this Tip
To rate tips, you must be a member of SearchWinDevelopment.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
.NET Developer
How to speed up Visual Studio 2008's slow WPF designer
How to list fonts in WPF using markup extensions and data templates
How to convince management to buy Microsoft Visual Studio 2008
Microsoft webcast series previews new Visual Studio 2010 features
New features in Windows 7 bring new UI considerations for developers
User Account Control (UAC): How to develop code for standard users
Introduction to Vista's user account control (UAC) for developers
Visual Studio 2008 code metrics tools will help keep code clean
Downloadable MSDN library released for VS 2008 SP 1
Widgetbox provides good example of how to use Facebook Developer Toolkit

.NET Framework security best practices
New features in Windows 7 bring new UI considerations for developers
Podcast: Windows CardSpace authors speak
Book excerpt: Java EE and .NET security interoperability
Book excerpt: Advanced Windows Debugging
Book excerpt: Pragmatic unit testing in C# with NUnit
Security interoperability with .NET/WSE and WebLogic Workshop 8.1
Windows Developments: Product news, December 2007
How to avoid regression bugs while adding new features
VB code: New additions, November 2007
VB code: Application security downloads

VB 6 to VB .NET Migration
On managing a .NET Framework 1.x migration
Tool translates VB .NET code to Java
Microsoft unveils VB 2005 'Power Packs'
Mini-Guide: The VB.NET Development Environment, Part 3
Mini-Guide: The VB.NET Development Environment, Part 2
Mini-Guide: The VB.NET Development Environment, Part 1
Put VB.NET events in the hands of AddHandler
Choosing VB.NET or C# Learning Guide
Object-Oriented Programming in VB .NET Learning Guide
Quiz: What do you know about VB 6 migration?

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
common test platform  (SearchWinDevelopment.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Database Programming Solutions - .NET XML, Visual Studio LINQ, ORM .NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts