Package com.couchbase.client.core.error
Class HttpStatusCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.couchbase.client.core.error.CouchbaseException
com.couchbase.client.core.error.HttpStatusCodeException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionHttpStatusCodeException
(com.couchbase.client.core.deps.io.netty.handler.codec.http.HttpResponseStatus status, String content, Request<?> request, ErrorContext errorContext) -
Method Summary
Modifier and TypeMethodDescriptioncontent()
HTTP response body as a String.static ResponseStatus
static String
int
Returns the Couchbase response status most closely associated with the HTTP status code.Methods inherited from class com.couchbase.client.core.error.CouchbaseException
context, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpStatusCodeException
public HttpStatusCodeException(com.couchbase.client.core.deps.io.netty.handler.codec.http.HttpResponseStatus status, String content, Request<?> request, ErrorContext errorContext)
-
-
Method Details
-
responseStatus
Returns the Couchbase response status most closely associated with the HTTP status code. -
httpStatusCode
public int httpStatusCode() -
content
HTTP response body as a String. Possibly empty, but never null. -
httpResponseBody
-
couchbaseResponseStatus
-