Class HttpErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.metaloom.qdrant.client.http.impl.HttpErrorException
- All Implemented Interfaces:
Serializable
Exception which is also used to return non-200 error responses.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpErrorException(String message, int statusCode, String body) HttpErrorException(String message, Exception e) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
HttpErrorException
-
HttpErrorException
-
-
Method Details
-
getBody
Returns the error response body.- Returns:
-
getStatusCode
public int getStatusCode()Returns the error HTTTP status code.- Returns:
-
getError
Return the server error response.- Returns:
-
getBodyObject
Transform the body string into the object of choice.- Parameters:
parser- Function used to transform the string.- Returns:
-
toString
-