-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
We have a lot of following constructs:
log.error( I18n.err( I18n.ERR_04007 ) );
throw new DecoderException( I18n.err( I18n.ERR_04007 ) );
What about logging the exception within the exception itself like
public DecoderException(String message)
{
super( message );
log.error( message );
}
This will avoid having log.error all over the place and the translation
must be done only once instead of twice like above.
Regards
Felix
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkwIG4oACgkQ2lZVCB08qHEb9wCgySj2lTnUNX6eob7BZZKGS/tQ
YFcAoI/BA8jtyHBFEKwQ3pYJtYOGLktV
=YeB5
-----END PGP SIGNATURE-----