Class RemoteSolrException

All Implemented Interfaces:
Serializable

public final class RemoteSolrException extends SolrException
Subclass of SolrException that allows us to capture an arbitrary HTTP status code and error details that may have been returned by the remote server or a proxy along the way.
See Also:
  • Constructor Details

    • RemoteSolrException

      public RemoteSolrException(String remoteHost, int code, String msg, Throwable th)
      Parameters:
      remoteHost - the host the error was received from
      code - Arbitrary HTTP status code
      msg - Exception Message
      th - Throwable to wrap with this Exception
    • RemoteSolrException

      public RemoteSolrException(String remoteHost, int code, Object remoteError)
      Parameters:
      remoteHost - the host the error was received from
      code - Arbitrary HTTP status code
      remoteError - Error response sent back from remoteHost
    • RemoteSolrException

      public RemoteSolrException(String remoteHost, int code, Object remoteError, boolean skipRetry)
      Parameters:
      remoteHost - the host the error was received from
      code - Arbitrary HTTP status code
      remoteError - Error response sent back from remoteHost
      skipRetry - Skip retry if the client is set to retry on failure
  • Method Details