Class Throwables

java.lang.Object
org.keycloak.common.util.Throwables

public final class Throwables extends Object
A utility class for working with Throwable instances.
  • Constructor Details

    • Throwables

      public Throwables()
  • Method Details

    • isCausedBy

      @SafeVarargs public static boolean isCausedBy(Throwable throwable, Class<? extends Exception>... type)
      Checks if the given throwable or any of its causes (up to a depth of 3) is an instance of any of the specified exception types.
      Parameters:
      throwable -
      type -
      Returns: