ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  An Exception Handling Framework for J2EE Applications
Subject:   logging original stack trace
Date:   2007-02-07 20:55:33
From:   Shrik
Response to: logging original stack trace

Wrapping the root exception with BaseAppException will not the stack-trace of original cause if you are working in JDK 1.4+ environment. However, for older JDK versions, there is a problem in keeping original stacktrace intact. <b/> In that case you need to modify BaseAppException for root-cause stacktrace implementation. You can take a look on NestedCheckedException implementation in Spring framework as a reference for the same.

1 to 1 of 1
1 to 1 of 1