public class ProtocolException extends java.lang.RuntimeException implements TransportException
Constructor and Description |
---|
ProtocolException(java.lang.String msg) |
ProtocolException(java.lang.String msg,
java.lang.Integer attemptedLowProtocolVersion) |
Modifier and Type | Method and Description |
---|---|
ExceptionCode |
code()
The exception code.
|
java.lang.Integer |
getAttemptedLowProtocolVersion()
If the ProtocolException is due to a connection being made with a protocol version that is lower
than Server.MIN_SUPPORTED_VERSION, this will return that unsupported protocol version.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessage
public ProtocolException(java.lang.String msg)
public ProtocolException(java.lang.String msg, java.lang.Integer attemptedLowProtocolVersion)
public ExceptionCode code()
TransportException
code
in interface TransportException
public java.lang.Integer getAttemptedLowProtocolVersion()
Copyright © 2017 The Apache Software Foundation