Archive For November, 2010
This article is part of a longer running series on Error Handling with Exceptions. Determining where to catch an exception can be one of the most difficult aspects to overcome in becoming comfortable with exceptions. These rules provide clear guidance and simplify the process by removing ambiguity. Please note that this article’s scope is limited […]
This article is part of a longer running series on Error Handling with Exceptions. Fortunately, throwing exceptions is very easy in most languages, and the best recommendation is to throw in such a way that all information required by the exception is populated. When creating custom exception types, care should be taken to ensure that […]
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 […]
This article is part of a longer running series on Error Handling with Exceptions. It can be a challenge to know when to throw exceptions and, unfortunately, the common guidance to throw in exceptional circumstances doesn’t do much to clarify the confusion. In this article, I will put forward postulates of when to throw exceptions […]