com.ebay.carad.os.vitalsigns.util
Class ExceptionUtil

java.lang.Object
  extended by com.ebay.carad.os.vitalsigns.util.ExceptionUtil

public abstract class ExceptionUtil
extends java.lang.Object

Simple utilities for Exceptions.

Version:
$Id$
Author:
Jeremy Kraybill, Jeremy Thomerson

Constructor Summary
ExceptionUtil()
           
 
Method Summary
private static java.lang.String exceptionMessageImpl(java.lang.Throwable th)
           
static java.lang.String fullDetailsMessage(java.lang.Throwable th)
          Creates an entire dump of the throwables message, stack trace, and caused by.
static java.lang.String stringValue(java.lang.Throwable throwable)
          Returns a nicely formatted, string-form stack trace of the given Throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUtil

public ExceptionUtil()
Method Detail

stringValue

public static java.lang.String stringValue(java.lang.Throwable throwable)
Returns a nicely formatted, string-form stack trace of the given Throwable. Why doesn't java have this built in?

Parameters:
throwable - the Throwable item to convert
Returns:
a string-form stack trace

fullDetailsMessage

public static final java.lang.String fullDetailsMessage(java.lang.Throwable th)
Creates an entire dump of the throwables message, stack trace, and caused by. Helper method to create a pretty exception message that is actually meaningful in CF. CF only prints the th.getMessage(), so the message has to have everything packed into it.

Parameters:
th - The throwable to format.
Returns:
The pretty message.

exceptionMessageImpl

private static final java.lang.String exceptionMessageImpl(java.lang.Throwable th)


Copyright © 2004-2009. All Rights Reserved.