Package com.rabbitmq.client
Class ProtocolVersionMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.ProtocolException
com.rabbitmq.client.ProtocolVersionMismatchException
- All Implemented Interfaces:
Serializable
Thrown to indicate that the server does not support the wire protocol version
we requested immediately after opening the TCP socket.
- See Also:
-
Constructor Summary
ConstructorDescriptionProtocolVersionMismatchException
(Version clientVersion, Version serverVersion) -
Method Summary
Modifier and TypeMethodDescriptionint
The client's AMQP specification major version.int
The client's AMQP specification minor version.The client's AMQP specification version.int
The server's AMQP specification major version.int
The server's AMQP specification minor version.The server's AMQP specification version.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ProtocolVersionMismatchException
-
-
Method Details
-
getClientVersion
The client's AMQP specification version. -
getServerVersion
The server's AMQP specification version. -
getClientMajor
public int getClientMajor()The client's AMQP specification major version. -
getClientMinor
public int getClientMinor()The client's AMQP specification minor version. -
getServerMajor
public int getServerMajor()The server's AMQP specification major version. -
getServerMinor
public int getServerMinor()The server's AMQP specification minor version.
-