Archive For The “CSharp” Category

Error Handling with Exceptions: What to Throw

By | November 3, 2010

This article is part of a longer running series on Error Handling with Exceptions. Fortunately, there are only a couple of things to keep in mind when throwing exceptions (and most of these requirements are built into the language or codified through convention). What to Throw Exception types should be specific to an error Exception […]

Read more »

Error Handling with Exceptions: Why Exceptions

By | October 28, 2010

This article is part of a longer running series on Error Handling with Exceptions. In today’s landscape, there are two primary means of handling errors within an application: exceptions and error codes. Working under the assumption that a clear and consistent error handling strategy is a Good Thing, the following is a brief list of […]

Read more »

Error Handling with Exceptions: References

By | October 27, 2010

This article is part of a longer running series on Error Handling with Exceptions. The following books and articles have been invaluable over the years as I have investigated exceptions and exception-related issues. In most cases, they have stated things far better than I could ever hope to. Articles Abrahams, David. “Exception-Safety in Generic Components“ […]

Read more »