Class ExceptionUtil
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.ExceptionUtil
-
public class ExceptionUtil extends Object
- Author:
- Radovan Semancik
-
-
Constructor Summary
Constructors Constructor Description ExceptionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Throwable>
TfindCause(Throwable throwable, Class<T> causeClass)Returns cause of specified type (can be `throwable` parameter itself) or `null`.static ThrowablefindRootCause(Throwable throwable)static CriticalityTypegetCriticality(ErrorSelectorType selector, Throwable exception, CriticalityType defaultValue)static @NotNull ErrorCategoryTypegetErrorCategory(Throwable exception)static LocalizableMessagegetUserFriendlyMessage(Throwable cause)static booleanisFatalCriticality(CriticalityType value, CriticalityType defaultValue)static StringlookForMessage(Throwable e)static ThrowablelookForTunneledException(Throwable ex)static StringprintStackTrace(Throwable t)
-
-
-
Method Detail
-
getCriticality
public static CriticalityType getCriticality(ErrorSelectorType selector, Throwable exception, CriticalityType defaultValue)
-
getErrorCategory
@NotNull public static @NotNull ErrorCategoryType getErrorCategory(Throwable exception)
-
isFatalCriticality
public static boolean isFatalCriticality(CriticalityType value, CriticalityType defaultValue)
-
getUserFriendlyMessage
public static LocalizableMessage getUserFriendlyMessage(Throwable cause)
-
findCause
public static <T extends Throwable> T findCause(Throwable throwable, Class<T> causeClass)
Returns cause of specified type (can be `throwable` parameter itself) or `null`.
-
-