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