Class SolrException

    • Method Detail

      • code

        public int code()
        The HTTP Status code associated with this Exception. For SolrExceptions thrown by Solr "Server Side", this should valid SolrException.ErrorCode, however client side exceptions may contain an arbitrary error code based on the behavior of the Servlet Container hosting Solr, or any HTTP Proxies that may exist between the client and the server.
        Returns:
        The HTTP Status code associated with this Exception
      • setMetadata

        public void setMetadata​(String key,
                                String value)
      • getThrowable

        public String getThrowable()
      • getRootThrowable

        public String getRootThrowable()
      • log

        public void log​(org.slf4j.Logger log)
      • log

        public static void log​(org.slf4j.Logger log,
                               Throwable e)
      • log

        public static void log​(org.slf4j.Logger log,
                               String msg,
                               Throwable e)
      • log

        public static void log​(org.slf4j.Logger log,
                               String msg)
      • doIgnore

        public static String doIgnore​(Throwable t,
                                      String m)
        Returns null if this exception does not match any ignore patterns, or a message string to use if it does.
      • logInfoWithMdc

        public void logInfoWithMdc​(org.slf4j.Logger logger,
                                   String msg)
      • logDebugWithMdc

        public void logDebugWithMdc​(org.slf4j.Logger logger,
                                    String msg)
      • logWarnWithMdc

        public void logWarnWithMdc​(org.slf4j.Logger logger,
                                   String msg)