com.neeve.util
Class UtlThrowable

java.lang.Object
  extended by com.neeve.util.UtlThrowable

public final class UtlThrowable
extends Object

Utility class containing methods to work with throwable objects.

This class contains runtime utility methods to work with throwable objects.


Constructor Summary
UtlThrowable()
           
 
Method Summary
static void prepareStackTrace(StringBuilder sb, StackTraceElement[] stack)
           
static String prepareStackTrace(Throwable t)
          Prepare a throwable object's stack trace.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtlThrowable

public UtlThrowable()
Method Detail

prepareStackTrace

public static String prepareStackTrace(Throwable t)
Prepare a throwable object's stack trace.

Parameters:
t - The throwable object whose stack trace is being prepared.
Returns:
Returns the prepared stack trace as a string.
Threading:
This method is safe for concurrent access by multiple threads

prepareStackTrace

public static void prepareStackTrace(StringBuilder sb,
                                     StackTraceElement[] stack)
Parameters:
sb - The builder into which to append the stack trace.
stack - The stack to dump.


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.