Blog posts
with tag "php"

Recently I was refactoring some old code we had built on CakePHP 1.3, and I was frustrated by a lack of easy error handling, specifically in the model function I was working with. After doing some digging, I determined that extending the ErrorHandler class, and creating my own error-types was the way to go.