catch exceptions for spring injections, 2.5.1