com.iparelan.util
Class ThrowableTools
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ThrowableTools
private ThrowableTools()
- Not instanciable.
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.