Comments on: Self-localizing Error Messages https://simpleprogrammer.com/self-localizing-error-messages/ Fri, 13 Apr 2018 03:23:26 +0000 hourly 1 https://wordpress.org/?v=7.0 By: Chris https://simpleprogrammer.com/self-localizing-error-messages/#comment-223 Wed, 23 Jun 2010 17:04:10 +0000 https://simpleprogrammer.com/?p=959#comment-223 Excellent example of seperating duties. It also adds a great deal of reusability to your error handling code. Since your error class just needs a few pieces of data passed to it in the constructor and can raise an event when it is done, it will integrate nicely with whatever solution you stick it into. There are times when dividing the work up cleanly can generate a lot of extra code, but it is a trade off for future maintenance.

]]>