Class NetworkExceptionHelper

java.lang.Object
org.elasticsearch.common.transport.NetworkExceptionHelper

public class NetworkExceptionHelper extends Object
  • Constructor Details

    • NetworkExceptionHelper

      public NetworkExceptionHelper()
  • Method Details

    • isConnectException

      public static boolean isConnectException(Throwable e)
    • getCloseConnectionExceptionLevel

      public static org.apache.logging.log4j.Level getCloseConnectionExceptionLevel(Throwable e, boolean rstOnClose)
      Returns:
      a log level indicating an approximate severity of the exception, or Level.OFF if the exception doesn't look to be network-related.