Class ExceptionUtil

java.lang.Object
org.mpi_sws.jmc.util.ExceptionUtil

public class ExceptionUtil extends Object
Utility class for exception handling.

This class provides methods to check if a given Throwable is an AssertionError or contains an AssertionError in its cause chain.

  • Constructor Details

    • ExceptionUtil

      public ExceptionUtil()
  • Method Details

    • isAssertionError

      public static boolean isAssertionError(Throwable t)
      Checks if the given Throwable is an AssertionError or contains an AssertionError in its cause chain.
      Parameters:
      t - the Throwable to check
      Returns:
      true if the Throwable is an AssertionError or contains one in its cause chain, false otherwise