Code:
String message = MessageFormat.format("error {0}",e);
E.g. message:
java.text.ParseException: Unparseable date: "sdf sf sa dg "
I need to receive all the stack trace, like:
java.text.ParseException: Unparseable date: "sdf sf sa dg "
at java.text.DateFormat.parse(Unknown Source)
................
Is this possible ?
Thanks.
You can use this method to capture the stacktrace in a String
EDIT: the SO article linked by Thomas is also a very good read!