Class QBadHttpResponseStatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.kingsrook.qqq.backend.core.exceptions.QException
com.kingsrook.qqq.backend.module.api.exceptions.QBadHttpResponseStatusException
- All Implemented Interfaces:
Serializable
Exception thrown when an API HTTP request failed due to a bad status code.
This exception includes the status code as a field, as well as the full
response object.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for responseint
Getter for statusCodevoid
setResponse
(QHttpResponse response) Setter for responsevoid
setStatusCode
(int statusCode) Setter for statusCodewithResponse
(QHttpResponse response) Fluent setter for responsewithStatusCode
(int statusCode) Fluent setter for statusCodeMethods inherited from class com.kingsrook.qqq.backend.core.exceptions.QException
getHasLoggedError, getHasLoggedWarning, hasLoggedLevel, setHasLoggedError, setHasLoggedLevel, setHasLoggedWarning, withHasLoggedError, withHasLoggedWarning
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
QBadHttpResponseStatusException
-
-
Method Details
-
getStatusCode
public int getStatusCode()Getter for statusCode -
setStatusCode
public void setStatusCode(int statusCode) Setter for statusCode -
withStatusCode
Fluent setter for statusCode -
getResponse
Getter for response -
setResponse
Setter for response -
withResponse
Fluent setter for response
-