Package org.apache.solr.client.solrj
Class RemoteSolrException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.solr.common.SolrException
org.apache.solr.client.solrj.RemoteSolrException
- All Implemented Interfaces:
Serializable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.common.SolrException
SolrException.ErrorCode -
Field Summary
Fields inherited from class org.apache.solr.common.SolrException
details, metadata -
Constructor Summary
ConstructorsConstructorDescriptionRemoteSolrException(String remoteHost, int code, Object remoteError) RemoteSolrException(String remoteHost, int code, Object remoteError, boolean skipRetry) RemoteSolrException(String remoteHost, int code, String msg, Throwable th) -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethods inherited from class org.apache.solr.common.SolrException
code, getDetails, getMetadata, getMetadata, getRootCause, getRootThrowable, getThrowable, logDebugWithMdc, logInfoWithMdc, logWarnWithMdc, setDetails, setMetadata, setMetadata, wrapLuceneTragicExceptionIfNecessaryMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RemoteSolrException
- Parameters:
remoteHost- the host the error was received fromcode- Arbitrary HTTP status codemsg- Exception Messageth- Throwable to wrap with this Exception
-
RemoteSolrException
- Parameters:
remoteHost- the host the error was received fromcode- Arbitrary HTTP status coderemoteError- Error response sent back from remoteHost
-
RemoteSolrException
- Parameters:
remoteHost- the host the error was received fromcode- Arbitrary HTTP status coderemoteError- Error response sent back from remoteHostskipRetry- Skip retry if the client is set to retry on failure
-
-
Method Details
-
getResponseMessage
- Overrides:
getResponseMessagein classSolrException
-
getMessage
- Overrides:
getMessagein classThrowable
-
getRemoteErrorObject
-
shouldSkipRetry
public boolean shouldSkipRetry()
-