Class ExceptionUtil
java.lang.Object
com.evolveum.midpoint.schema.util.ExceptionUtil
- Author:
- Radovan Semancik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Throwable>
TReturns cause of specified type (can be `throwable` parameter itself) or `null`.static Throwable
findRootCause
(Throwable throwable) getCausesFromBottomUp
(@NotNull Throwable throwable) static CriticalityType
getCriticality
(ErrorSelectorType selector, Throwable exception, CriticalityType defaultValue) static @NotNull ErrorCategoryType
getErrorCategory
(Throwable exception) static LocalizableMessage
getUserFriendlyMessage
(Throwable cause) static boolean
isFatalCriticality
(CriticalityType value, CriticalityType defaultValue) static String
static Throwable
static String
-
Constructor Details
-
ExceptionUtil
public ExceptionUtil()
-
-
Method Details
-
lookForTunneledException
-
lookForMessage
-
getCriticality
public static CriticalityType getCriticality(ErrorSelectorType selector, Throwable exception, CriticalityType defaultValue) -
getErrorCategory
-
isFatalCriticality
-
getUserFriendlyMessage
-
findCause
Returns cause of specified type (can be `throwable` parameter itself) or `null`. -
findRootCause
-
getCauses
-
getCausesFromBottomUp
-
printStackTrace
-