Package io.sentry.util
Class ExceptionUtils
java.lang.Object
io.sentry.util.ExceptionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Throwable
findRootCause
(@NotNull Throwable throwable) Returns exception root cause or the exception itself if there are no causesstatic boolean
isIgnored
(@NotNull Set<Class<? extends Throwable>> ignoredExceptionsForType, @NotNull Throwable throwable) Checks if an exception has been ignored.
-
Constructor Details
-
ExceptionUtils
public ExceptionUtils()
-
-
Method Details
-
findRootCause
Returns exception root cause or the exception itself if there are no causes- Parameters:
throwable
- - the throwable- Returns:
- the root cause
-
isIgnored
@Internal public static boolean isIgnored(@NotNull @NotNull Set<Class<? extends Throwable>> ignoredExceptionsForType, @NotNull @NotNull Throwable throwable) Checks if an exception has been ignored.
-