com.virtuosotechnologies.lib.error
Class ExceptionUtils

java.lang.Object
  extended bycom.virtuosotechnologies.lib.error.ExceptionUtils

public final class ExceptionUtils
extends Object

Various utilities for Java exceptions.


Method Summary
static String formatSimple(Throwable ex)
          Generate a simple String representation of the given exception.
static String formatStackTrace(Throwable ex)
          Generate a stack trace String representation of the given exception.
static String formatUserMessage(Throwable ex)
          Generate a user-visible String representation of the given exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

formatUserMessage

public static String formatUserMessage(Throwable ex)
Generate a user-visible String representation of the given exception.

Parameters:
ex - throwable
Returns:
a formatted String.

formatSimple

public static String formatSimple(Throwable ex)
Generate a simple String representation of the given exception.

Parameters:
ex - throwable
Returns:
a formatted String.

formatStackTrace

public static String formatStackTrace(Throwable ex)
Generate a stack trace String representation of the given exception.

Parameters:
ex - throwable
Returns:
a formatted String.