/**
*
*
* Date: Sep 6, 2013 3:25:10 PM
*
*/
package com.scb.razor.integration.mail;
/**
* TODO: Briefly explain what this class does
*
* @author 1466811
*
*/
public class ExceptionInfo
{
public static String getExceptionInfo(Exception e)
{
assert (e != null);
StringBuffer msg = new StringBuffer("");
msg.append(e.toString() + "\n");
int length = e.getStackTrace().length;
if (length > 0)
{
for (int i = 0; i < length; i++)
{
msg.append("\t" + e.getStackTrace()[i] + "\n");
}
}
return msg.toString();
}
public static void main(String[] args)
{
System.out.println("It works!");
}
}
*
*
* Date: Sep 6, 2013 3:25:10 PM
*
*/
package com.scb.razor.integration.mail;
/**
* TODO: Briefly explain what this class does
*
* @author 1466811
*
*/
public class ExceptionInfo
{
public static String getExceptionInfo(Exception e)
{
assert (e != null);
StringBuffer msg = new StringBuffer("");
msg.append(e.toString() + "\n");
int length = e.getStackTrace().length;
if (length > 0)
{
for (int i = 0; i < length; i++)
{
msg.append("\t" + e.getStackTrace()[i] + "\n");
}
}
return msg.toString();
}
public static void main(String[] args)
{
System.out.println("It works!");
}
}