Package aQute.bnd.exceptions
Class Exceptions
- java.lang.Object
-
- aQute.bnd.exceptions.Exceptions
-
public class Exceptions extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
causes(java.lang.Throwable t)
static java.lang.RuntimeException
duck(java.lang.Throwable t)
static java.lang.String
getDisplayTypeName(java.lang.Throwable e)
Return a display name of an exception type.static java.lang.String
toString(java.lang.Throwable t)
static void
unchecked(RunnableWithException runnable)
static <V> V
unchecked(java.util.concurrent.Callable<? extends V> callable)
static java.lang.Throwable
unrollCause(java.lang.Throwable t)
static java.lang.Throwable
unrollCause(java.lang.Throwable t, java.lang.Class<? extends java.lang.Throwable> unrollType)
-
-
-
Method Detail
-
unchecked
public static <V> V unchecked(java.util.concurrent.Callable<? extends V> callable)
-
unchecked
public static void unchecked(RunnableWithException runnable)
-
duck
public static java.lang.RuntimeException duck(java.lang.Throwable t)
-
toString
public static java.lang.String toString(java.lang.Throwable t)
-
unrollCause
public static java.lang.Throwable unrollCause(java.lang.Throwable t, java.lang.Class<? extends java.lang.Throwable> unrollType)
-
unrollCause
public static java.lang.Throwable unrollCause(java.lang.Throwable t)
-
causes
public static java.lang.String causes(java.lang.Throwable t)
-
getDisplayTypeName
public static java.lang.String getDisplayTypeName(java.lang.Throwable e)
Return a display name of an exception type. This is basically removing the package and the Exception or Error suffix.- Parameters:
e
- the exception- Returns:
- a display name for its type
-
-