- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
protected String getException (final Exception exception) throws IOException
{
final ByteArrayOutputStream bos = new ByteArrayOutputStream ();
try
{
final PrintStream ps = new PrintStream (bos);
exception.printStackTrace (ps);
}
finally
{
bos.close ();
}
return bos.toString ();
}