Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Need more information on Exception getCause and GetMessage

843810Oct 27 2004 — edited Aug 16 2005

Hi,

I wass developing a module for displaying exceptions in my application.
Depending on the log level, I wanted to display contents in a log.

I wanted to know the what are these useful - getMessage(), getCause() and printstacktrace().

Printstacktrace might not be preferred logging message and not sure what else can be a better log.

Thanks & Regards,
Chandra
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 13 2005
Added on Oct 27 2004
3 comments
3,903 views