Package com.linecorp.armeria.client
Class SessionProtocolNegotiationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.client.SessionProtocolNegotiationException
- All Implemented Interfaces:
Serializable
An exception triggered when failed to negotiate the desired
SessionProtocol
with a server.- See Also:
-
Constructor Summary
ConstructorDescriptionSessionProtocolNegotiationException
(SessionProtocol expected, @Nullable SessionProtocol actual, @Nullable String reason) Creates a new instance with the specified expected and actualSessionProtocol
s.SessionProtocolNegotiationException
(SessionProtocol expected, @Nullable String reason) Creates a new instance with the specified expectedSessionProtocol
. -
Method Summary
Modifier and TypeMethodDescriptionactual()
Returns the actualSessionProtocol
.expected()
Returns the expectedSessionProtocol
.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SessionProtocolNegotiationException
public SessionProtocolNegotiationException(SessionProtocol expected, @Nullable @Nullable String reason) Creates a new instance with the specified expectedSessionProtocol
. -
SessionProtocolNegotiationException
public SessionProtocolNegotiationException(SessionProtocol expected, @Nullable @Nullable SessionProtocol actual, @Nullable @Nullable String reason) Creates a new instance with the specified expected and actualSessionProtocol
s.
-
-
Method Details
-
expected
Returns the expectedSessionProtocol
. -
actual
Returns the actualSessionProtocol
.- Returns:
- the actual
SessionProtocol
, ornull
if failed to determine the protocol.
-
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-