Class ProtocolVersionException

All Implemented Interfaces:
Serializable

public class ProtocolVersionException extends NXCException
Thrown when server's communication protocol version does not match client's one. Carries server's product version in addition to raw protocol versions, so that user interface can suggest a matching client.
See Also:
  • Constructor Details

    • ProtocolVersionException

      public ProtocolVersionException(ProtocolVersion protocolVersion, String serverVersion, String serverBuild)
      Create new protocol version exception.
      Parameters:
      protocolVersion - protocol versions reported by server
      serverVersion - server's product version
      serverBuild - server's build tag (can be null)
  • Method Details

    • getProtocolVersion

      public ProtocolVersion getProtocolVersion()
      Get protocol versions reported by server.
      Returns:
      protocol versions reported by server
    • getServerVersion

      public String getServerVersion()
      Get server's product version.
      Returns:
      server's product version
    • getServerBuild

      public String getServerBuild()
      Get server's build tag.
      Returns:
      server's build tag or null if not provided by server