Package io.servicetalk.http.netty
Class RetryingHttpRequesterFilter.HttpResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.servicetalk.http.netty.RetryingHttpRequesterFilter.HttpResponseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExpectationFailedException
- Enclosing class:
- RetryingHttpRequesterFilter
This exception indicates response that matched the retrying rules of the
RetryingHttpRequesterFilter
and will-be/was retried.
RetryingHttpRequesterFilter.HttpResponseException
s are user-provided errors, resulting from an HttpRequestMetaData
, through
the RetryingHttpRequesterFilter.Builder.responseMapper(Function)
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
Deprecated.final HttpResponseMetaData
Deprecated.UsemetaData()
. -
Constructor Summary
ConstructorDescriptionHttpResponseException
(String message, HttpResponseMetaData metaData) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionmetaData()
HttpResponseMetaData
of the response that caused this exception.toString()
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
metaData
Deprecated.UsemetaData()
.HttpResponseMetaData
of the response that caused this exception. -
message
Deprecated.Exception detail message.
-
-
Constructor Details
-
HttpResponseException
Create a new instance.- Parameters:
message
- the description message.metaData
- received response meta-data.
-
-
Method Details
-
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-
metaData
HttpResponseMetaData
of the response that caused this exception.- Returns:
- The
HttpResponseMetaData
of the response that caused this exception.
-
toString
-
Throwable.getMessage()
.