net.dpml.util
Class ExceptionHelper

java.lang.Object
  extended by net.dpml.util.ExceptionHelper

public final class ExceptionHelper
extends Object

General utilities supporting the packaging of exception messages.

Version:
1.1.0
Author:
Digital Product Meta Library

Method Summary
static String packException(String message, Throwable e)
          Returns the exception and causal exceptions as a formatted string.
static String packException(String message, Throwable[] e, boolean stack)
          Returns the exception and causal exceptions as a formatted string.
static String packException(String message, Throwable e, boolean stack)
          Returns the exception and causal exceptions as a formatted string.
static String packException(Throwable e)
          Returns the exception and causal exceptions as a formatted string.
static String packException(Throwable e, boolean stack)
          Returns the exception and causal exceptions as a formatted string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

packException

public static String packException(Throwable e)
Returns the exception and causal exceptions as a formatted string.

Parameters:
e - the exception
Returns:
String the formatting string

packException

public static String packException(Throwable e,
                                   boolean stack)
Returns the exception and causal exceptions as a formatted string.

Parameters:
e - the exception
stack - TRUE to generate a stack trace
Returns:
String the formatting string

packException

public static String packException(String message,
                                   Throwable e)
Returns the exception and causal exceptions as a formatted string.

Parameters:
message - the header message
e - the exception
Returns:
String the formatting string

packException

public static String packException(String message,
                                   Throwable e,
                                   boolean stack)
Returns the exception and causal exceptions as a formatted string.

Parameters:
message - the header message
e - the exception
stack - TRUE to generate a stack trace
Returns:
String the formatting string

packException

public static String packException(String message,
                                   Throwable[] e,
                                   boolean stack)
Returns the exception and causal exceptions as a formatted string.

Parameters:
message - the header message
e - the exceptions
stack - TRUE to generate a stack trace
Returns:
String the formatting string