com.pmease.quickbuild.util
Class ExceptionUtils

java.lang.Object
  extended by com.pmease.quickbuild.util.ExceptionUtils

public class ExceptionUtils
extends java.lang.Object


Constructor Summary
ExceptionUtils()
           
 
Method Summary
static java.lang.String buildMessage(java.lang.String cause, java.util.Map factors)
           
static java.lang.String buildMessage(java.lang.String cause, java.lang.Object... factors)
           
static
<T extends java.lang.Throwable>
T
extractException(java.lang.Throwable throwable, java.lang.Class<T> exceptionClass)
           
static java.lang.String extractImportantMessage(java.lang.Throwable throwable)
           
static QuickbuildException extractQuickbuildException(java.lang.Throwable throwable)
           
static java.lang.RuntimeException wrapAsUnchecked(java.lang.Throwable throwable)
           
static java.lang.RuntimeException wrapException(java.lang.String message, java.lang.Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUtils

public ExceptionUtils()
Method Detail

extractException

public static <T extends java.lang.Throwable> T extractException(java.lang.Throwable throwable,
                                                                 java.lang.Class<T> exceptionClass)

extractQuickbuildException

public static QuickbuildException extractQuickbuildException(java.lang.Throwable throwable)

extractImportantMessage

public static java.lang.String extractImportantMessage(java.lang.Throwable throwable)

buildMessage

public static java.lang.String buildMessage(java.lang.String cause,
                                            java.lang.Object... factors)

buildMessage

public static java.lang.String buildMessage(java.lang.String cause,
                                            java.util.Map factors)

wrapAsUnchecked

public static java.lang.RuntimeException wrapAsUnchecked(java.lang.Throwable throwable)

wrapException

public static java.lang.RuntimeException wrapException(java.lang.String message,
                                                       java.lang.Throwable throwable)


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.