Package aQute.lib.exceptions
Class Exceptions
java.lang.Object
aQute.lib.exceptions.Exceptions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static RuntimeException
static String
Return a display name of an exception type.private static <E extends Throwable>
voidthrowsUnchecked
(Throwable throwable) static String
static void
unchecked
(RunnableWithException runnable) static <V> V
static Throwable
static Throwable
unrollCause
(Throwable t, Class<? extends Throwable> unrollType)
-
Field Details
-
DISPLAY_P
-
-
Constructor Details
-
Exceptions
private Exceptions()
-
-
Method Details
-
unchecked
-
unchecked
-
duck
-
throwsUnchecked
- Throws:
E extends Throwable
-
toString
-
unrollCause
-
unrollCause
-
causes
-
getDisplayTypeName
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
-