Class ExceptionUtils

java.lang.Object
io.sentry.util.ExceptionUtils

@Internal public final class ExceptionUtils extends Object
  • Constructor Details

    • ExceptionUtils

      public ExceptionUtils()
  • Method Details

    • findRootCause

      @NotNull public static @NotNull Throwable findRootCause(@NotNull @NotNull Throwable throwable)
      Returns exception root cause or the exception itself if there are no causes
      Parameters:
      throwable - - the throwable
      Returns:
      the root cause