org.ubercraft.sucre.common
Class ExceptionUtil

java.lang.Object
  extended by org.ubercraft.sucre.common.ExceptionUtil

public final class ExceptionUtil
extends Object


Constructor Summary
ExceptionUtil()
           
 
Method Summary
static Exception asChecked(Throwable th)
           
static Error asError(Throwable th)
           
static RuntimeException asUnchecked(Throwable th)
           
 
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

asChecked

public static Exception asChecked(Throwable th)
                           throws Exception
Throws:
Exception

asUnchecked

public static RuntimeException asUnchecked(Throwable th)
                                    throws RuntimeException
Throws:
RuntimeException

asError

public static Error asError(Throwable th)
                     throws Error
Throws:
Error


Copyright © 2013. All Rights Reserved.