com.iparelan.util
Class ThrowableTools

java.lang.Object
  extended by com.iparelan.util.ThrowableTools

@Copyright(value="Copyright © 2008, Iparelan Solutions, LLC. All rights reserved.")
public final class ThrowableTools
extends Object

This utility contains procedures for Throwable values.

Version:
March 2008
Author:
Greg Mattes

Field Summary
private static String CAUSED_BY
           
private static String ERROR_DETAIL_TITLE
           
private static String ERROR_SUMMARY_TITLE
           
private static String LINE_SEPARATOR
           
private static String STACK_TRACE_ELT_PREFIX
           
private static String TYPE_DELIM
           
private static String TYPE_MSG_DELIM
           
 
Constructor Summary
private ThrowableTools()
          Not instanciable.
 
Method Summary
static String formatThrowable(Throwable throwable)
          Fully formats a Throwable, unlike Throwable.printStackTrace(PrintWriter) which elides certain output if the output is determined to be too long.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CAUSED_BY

private static final String CAUSED_BY
See Also:
Constant Field Values

ERROR_DETAIL_TITLE

private static final String ERROR_DETAIL_TITLE
See Also:
Constant Field Values

ERROR_SUMMARY_TITLE

private static final String ERROR_SUMMARY_TITLE
See Also:
Constant Field Values

LINE_SEPARATOR

private static final String LINE_SEPARATOR

STACK_TRACE_ELT_PREFIX

private static final String STACK_TRACE_ELT_PREFIX
See Also:
Constant Field Values

TYPE_DELIM

private static final String TYPE_DELIM
See Also:
Constant Field Values

TYPE_MSG_DELIM

private static final String TYPE_MSG_DELIM
See Also:
Constant Field Values
Constructor Detail

ThrowableTools

private ThrowableTools()
Not instanciable.

Method Detail

formatThrowable

public static String formatThrowable(Throwable throwable)
Fully formats a Throwable, unlike Throwable.printStackTrace(PrintWriter) which elides certain output if the output is determined to be too long.

Parameters:
throwable - The Throwable to format. May not be null.
Returns:
A string containing a formatted version of the specified throwable. Never null.


Copyright © 2008 Iparelan Solutions, LLC. All rights reserved.