com.acsinet_solutions.util.exception
Class CompactExceptionDataWriter

java.lang.Object
  extended by com.acsinet_solutions.util.exception.AbstractExceptionDataWriter
      extended by com.acsinet_solutions.util.exception.SimpleExceptionDataWriter
          extended by 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

Constructor Summary
CompactExceptionDataWriter()
           
 
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 com.acsinet_solutions.util.exception.SimpleExceptionDataWriter
endException, printMessage, printStackTraceEntry, startException, toString
 
Methods inherited from class com.acsinet_solutions.util.exception.AbstractExceptionDataWriter
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.acsinet_solutions.util.exception.ExceptionDataWriter
write
 

Constructor Detail

CompactExceptionDataWriter

public CompactExceptionDataWriter()
Method Detail

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