O'Reilly logo

.NET Common Language Runtime Unleashed by Kevin Burton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Error Handling with Exceptions

Why does .NET take such a Draconian stance on error handling? With C++, several methods were available for handling errors, exceptions being among them. VB had an error-handling scheme that was remarkably similar to exceptions. The list goes on; each language had its own method of dealing with errors. Indeed, that was the problem. Each language had one or more ways of handling errors. One of the goals of the .NET platform was to create a unified environment where all languages were “equal.” For a language to interoperate seamlessly with another language, the error-handling schemes must be the same. If the error handling tried to be all things to all languages, then every time a new language or even a new error-handling ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required