Announcement Announcement Module
Collapse
No announcement yet.
Handling exceptions thrown during initialization Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Handling exceptions thrown during initialization

    I would like to be able to assign error codes, localize messages, provide context parameters, etc. before logging and generating events when configuration problems occur due to unavailable or missing resources when Spring creates all the beans.

    How do I get in the middle of the exception handling? Am I stuck doing it in Log4j?

    Tony

  • #2
    One possibility would be to bootstrap Spring yourself and catch exceptions exceptions there. However, this will limit the ability to deploy Spring in different environment.

    Comment

    Working...
    X