Class ExceptionUtils

java.lang.Object
org.springframework.data.elasticsearch.support.ExceptionUtils

public final class ExceptionUtils extends Object
Since:
4.4
Author:
Peter-Josef Meisch
  • Method Details

    • isCausedByConnectionException

      public static boolean isCausedByConnectionException(Throwable throwable)
      checks if the given throwable is a ConnectException or has one in its cause chain
      Parameters:
      throwable - the throwable to check
      Returns:
      true if throwable is caused by a ConnectException