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
public final class SessionProtocolNegotiationException extends RuntimeException
An exception triggered when failed to negotiate the desired
SessionProtocol
with a server.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SessionProtocolNegotiationException(SessionProtocol expected, SessionProtocol actual, String reason)
Creates a new instance with the specified expected and actualSessionProtocol
s.SessionProtocolNegotiationException(SessionProtocol expected, String reason)
Creates a new instance with the specified expectedSessionProtocol
. -
Method Summary
Modifier and Type Method Description SessionProtocol
actual()
Returns the actualSessionProtocol
.SessionProtocol
expected()
Returns the expectedSessionProtocol
.Throwable
fillInStackTrace()
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SessionProtocolNegotiationException
Creates a new instance with the specified expectedSessionProtocol
. -
SessionProtocolNegotiationException
public SessionProtocolNegotiationException(SessionProtocol expected, @Nullable SessionProtocol actual, @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
-