Extended Javadoc.
This commit is contained in:
parent
96e3a7ccc6
commit
e2678e4e9a
1 changed files with 16 additions and 15 deletions
|
@ -22,25 +22,26 @@ import java.io.ByteArrayOutputStream;
|
||||||
import java.io.PrintStream;
|
import java.io.PrintStream;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated use <code>SLF4J.Logger.error("blabla", exception)</code> method.
|
* @deprecated use <code>SLF4J.Logger.error("blabla", exception)</code> method
|
||||||
|
* or the ExceptionUtils.getStackTrace(throwable).
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public class StacktraceWriter
|
public class StacktraceWriter
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @deprecated use <code>SLF4J.Logger.error("blabla", exception)</code>
|
* @deprecated use <code>SLF4J.Logger.error("blabla", exception)</code>
|
||||||
* method.
|
* method or the ExceptionUtils.getStackTrace(throwable).
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static String toString(final Exception exception)
|
public static String toString(final Exception exception)
|
||||||
{
|
{
|
||||||
String result;
|
String result;
|
||||||
|
|
||||||
ByteArrayOutputStream out = new ByteArrayOutputStream(50000);
|
ByteArrayOutputStream out = new ByteArrayOutputStream(50000);
|
||||||
exception.printStackTrace(new PrintStream(out));
|
exception.printStackTrace(new PrintStream(out));
|
||||||
result = out.toString();
|
result = out.toString();
|
||||||
|
|
||||||
//
|
//
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue