Class UnsupportedProtocolVersionException

    • Method Detail

      • getServerVersion

        public ProtocolVersion getServerVersion()
        The version with which the server replied.

        Note that this version is not necessarily a supported version. While this is usually the case, in rare situations, the server might respond with an unsupported version, to ensure that the client can decode its response properly. See CASSANDRA-11464 for more details.

        Returns:
        The version with which the server replied.
      • getUnsupportedVersion

        public ProtocolVersion getUnsupportedVersion()
        The version with which the client sent its request.
        Returns:
        The version with which the client sent its request.
      • copy

        public UnsupportedProtocolVersionException copy()
        Description copied from class: DriverException
        Copy the exception.

        This returns a new exception, equivalent to the original one, except that because a new object is created in the current thread, the top-most element in the stacktrace of the exception will refer to the current thread (this is mainly intended for internal use by the driver). The cause of the copied exception will be the original exception.

        Overrides:
        copy in class DriverException
        Returns:
        a copy/clone of this exception.