Instead of thisyou should have list of pattern to match as error codes corresponding to them like in(better yet create structure for pattern, but that would be overkill here). It's against code duplication.
Instead of this:simplier to create a collection and then check all its elements for this condition. This way you'd only specify in single place what you want of all these String things:(it'd be better to create structure to manage that information and check information correctness while initializing it (within it))
P.S. Whole point: write it like this and you'll never loose that ';' after 17th if statement.
[ June 29, 2006: Message edited by: Vladimir Nesov ]