Class UnexpectedProtocolRedirectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.client.redirect.RedirectsException
com.linecorp.armeria.client.redirect.UnexpectedProtocolRedirectException
- All Implemented Interfaces:
Serializable
An exception indicating that the session protocol of the redirection URI
is not allowed to redirect.
-
Method Summary
Modifier and TypeMethodDescriptionof
(SessionProtocol redirectProtocol, Iterable<SessionProtocol> expectedProtocols) Returns a newUnexpectedProtocolRedirectException
.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
of
public static UnexpectedProtocolRedirectException of(SessionProtocol redirectProtocol, Iterable<SessionProtocol> expectedProtocols) Returns a newUnexpectedProtocolRedirectException
. -
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-