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

        @Deprecated
        public void log​(org.slf4j.Logger log)
        Deprecated.
        Use the Logger directly
        This method was initially created to aid in testing situations that were known to cause ERRORs. It should no longer be used by any new code.
      • log

        @Deprecated
        public static void log​(org.slf4j.Logger log,
                               Throwable e)
        Deprecated.
        Use the Logger directly
        This method was initially created to aid in testing situations that were known to cause ERRORs. It should no longer be used by any new code.
      • log

        @Deprecated
        public static void log​(org.slf4j.Logger log,
                               String msg,
                               Throwable e)
        Deprecated.
        Use the Logger directly
        This method was initially created to aid in testing situations that were known to cause ERRORs. It should no longer be used by any new code.
      • log

        @Deprecated
        public static void log​(org.slf4j.Logger log,
                               String msg)
        Deprecated.
        Use the Logger directly
        This method was initially created to aid in testing situations that were known to cause ERRORs. It should no longer be used by any new code.
      • 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)