Tag Archives: program logic error

Extreme Precision Programming

What is “Extreme Precision Programming”?  It is a style of programming that aims to perform the intended function, while being very noisy about anything that deviates from the intended mode of behavior.  It is nothing like a complete methodology, but rather a philosophical leaning to guide choices at the implementation level. Read the rest of this entry »

Leave a comment

Posted by on July 12, 2017 in Coding, Design, practice


Tags: , ,

Two Kinds of Exceptions

An exception is a message from the system to the user about something that the program can not handle. There are a couple of main categories of exceptions: environmental and program logic. They warrant quite different treatment. Read the rest of this entry »

Leave a comment

Posted by on March 14, 2016 in Coding, Design, Poor Error Msg, practice


Tags: , , , ,

Catch and Continue @ Apache Chemistry

Guideline #14 is “Never Catch and Continue” referring to the bad habit of catching an exception and then continuing processing as if nothing ever happened.  I ran across some particularly bad examples in the example code at one of the Apache projects.  This is an example of what NOT to do. Read the rest of this entry »

Leave a comment

Posted by on February 20, 2013 in Coding


Tags: , ,

Gathering Error Report Information

In the last post, I clarified the Purpose of Error Reporting is to give user/administrators information to solve the problem that they have encountered.  This post outlines a way to gather the best information together for that error message. Read the rest of this entry »

1 Comment

Posted by on February 15, 2013 in Coding, Poor Error Msg


Tags: , , ,

#17 Program Logic Error

Not all exceptions are the same, and when writing a program, it is important to be mindful of whether the root cause of an exception is the programmer, or possibly environment or user data.  The latter type of exception can reasonably occur in a production environment, and so needs a translatable message.  But errors of the programmer can not happen in production, and thus should be handled differently. Read the rest of this entry »

1 Comment

Posted by on October 26, 2011 in Coding


Tags: ,