org.broadleafcommerce.common.exception
Class ExceptionHelper

java.lang.Object
  extended by org.broadleafcommerce.common.exception.ExceptionHelper

public class ExceptionHelper
extends Object

Author:
Jeff Fischer

Constructor Summary
ExceptionHelper()
           
 
Method Summary
static
<G extends Throwable,J extends RuntimeException>
void
processException(Class<G> refineType, Class<J> wrapType, String message, Throwable e)
           
static
<G extends Throwable,J extends RuntimeException>
void
processException(Class<G> refineType, Class<J> wrapType, Throwable e)
           
static
<G extends Throwable,J extends RuntimeException>
void
processException(Class<J> wrapType, Throwable e)
           
static
<G extends Throwable,J extends RuntimeException>
void
processException(Throwable e)
           
static
<G extends Throwable,J extends RuntimeException>
RuntimeException
refineException(Class<G> refineType, Class<J> wrapType, String message, Throwable e)
           
static
<G extends Throwable,J extends RuntimeException>
RuntimeException
refineException(Class<G> refineType, Class<J> wrapType, Throwable e)
           
static
<G extends Throwable,J extends RuntimeException>
RuntimeException
refineException(Class<J> wrapType, Throwable e)
           
static
<G extends Throwable,J extends RuntimeException>
RuntimeException
refineException(Throwable e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHelper

public ExceptionHelper()
Method Detail

refineException

public static <G extends Throwable,J extends RuntimeException> RuntimeException refineException(Class<G> refineType,
                                                                                                Class<J> wrapType,
                                                                                                String message,
                                                                                                Throwable e)

refineException

public static <G extends Throwable,J extends RuntimeException> RuntimeException refineException(Class<G> refineType,
                                                                                                Class<J> wrapType,
                                                                                                Throwable e)

refineException

public static <G extends Throwable,J extends RuntimeException> RuntimeException refineException(Class<J> wrapType,
                                                                                                Throwable e)

refineException

public static <G extends Throwable,J extends RuntimeException> RuntimeException refineException(Throwable e)

processException

public static <G extends Throwable,J extends RuntimeException> void processException(Class<G> refineType,
                                                                                     Class<J> wrapType,
                                                                                     String message,
                                                                                     Throwable e)
                             throws G extends Throwable
Throws:
G extends Throwable

processException

public static <G extends Throwable,J extends RuntimeException> void processException(Class<G> refineType,
                                                                                     Class<J> wrapType,
                                                                                     Throwable e)
                             throws G extends Throwable
Throws:
G extends Throwable

processException

public static <G extends Throwable,J extends RuntimeException> void processException(Class<J> wrapType,
                                                                                     Throwable e)
                             throws G extends Throwable
Throws:
G extends Throwable

processException

public static <G extends Throwable,J extends RuntimeException> void processException(Throwable e)
                             throws G extends Throwable
Throws:
G extends Throwable


Copyright © 2013. All Rights Reserved.