Package org.netxms.client
Class ProtocolVersionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.netxms.client.NXCException
org.netxms.client.ProtocolVersionException
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class org.netxms.client.NXCException
additionalInfo, errorCode, relatedObjects -
Constructor Summary
ConstructorsConstructorDescriptionProtocolVersionException(ProtocolVersion protocolVersion, String serverVersion, String serverBuild) Create new protocol version exception. -
Method Summary
Modifier and TypeMethodDescriptionGet protocol versions reported by server.Get server's build tag.Get server's product version.Methods inherited from class org.netxms.client.NXCException
getAdditionalInfo, getErrorCode, getErrorMessage, getLocalizedMessage, getMessage, getRelatedObjectsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ProtocolVersionException
public ProtocolVersionException(ProtocolVersion protocolVersion, String serverVersion, String serverBuild) Create new protocol version exception.- Parameters:
protocolVersion- protocol versions reported by serverserverVersion- server's product versionserverBuild- server's build tag (can be null)
-
-
Method Details
-
getProtocolVersion
Get protocol versions reported by server.- Returns:
- protocol versions reported by server
-
getServerVersion
Get server's product version.- Returns:
- server's product version
-
getServerBuild
Get server's build tag.- Returns:
- server's build tag or null if not provided by server
-