Still reviewing that code base and finding more bad patterns for use of constants, this time for error messages. This is another “don’t do this” post. Read the rest of this entry »
Tag Archives: exceptions
If you already know the requirements and best practices for exception handling and error reporting, this post talks about some convenient guidelines to follow to make it easier to comply with the rules.
Read the rest of this entry »
You call a method to retrieve information about an object with a particular ID, but the record does not exist. Is this an exception? Or not? It is hard to answer. Read the rest of this entry »
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 »