com.acsinet_solutions.util.exception
Class CompactExceptionDataWriter
java.lang.Object
com.acsinet_solutions.util.exception.AbstractExceptionDataWriter
com.acsinet_solutions.util.exception.SimpleExceptionDataWriter
com.acsinet_solutions.util.exception.CompactExceptionDataWriter
- All Implemented Interfaces:
- ExceptionDataWriter
public final class CompactExceptionDataWriter
- extends SimpleExceptionDataWriter
This is an exception data writer class that only writes the first
10 lines at most on each exception level.
- Author:
- Santiago Arriaga
|
Method Summary |
static java.lang.String |
getStackTrace(java.lang.Throwable throwable)
Get a stack trace |
protected int |
getStop(ExceptionData data)
Get the stop condition, by default, it is the first different index. |
static void |
printStackTrace(java.lang.Throwable throwable)
Print a stack trace to system error output |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CompactExceptionDataWriter
public CompactExceptionDataWriter()
printStackTrace
public static final void printStackTrace(java.lang.Throwable throwable)
- Print a stack trace to system error output
- Parameters:
throwable - A Throwable instance to use
getStackTrace
public static final java.lang.String getStackTrace(java.lang.Throwable throwable)
- Get a stack trace
- Parameters:
throwable - A Throwable instance to use
getStop
protected int getStop(ExceptionData data)
- Description copied from class:
AbstractExceptionDataWriter
- Get the stop condition, by default, it is the first different index.
This method is overridable.
- Overrides:
getStop in class AbstractExceptionDataWriter