com.prosysopc.ua.client
Class ServerConnectionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.prosysopc.ua.client.ServerConnectionException
All Implemented Interfaces:
Serializable

public class ServerConnectionException
extends RuntimeException

Failure in server connection. The exception is raised when trying to make a service call to the OPC UA server, without an existing connection channel. This is a RuntimeException, because you should normally check Server.isConnected before trying to make the service calls. In case it returns true, you should not get this exception.

See Also:
Serialized Form

Field Summary
protected  String uri
           
 
Constructor Summary
ServerConnectionException(String message, String uri, org.opcfoundation.ua.transport.security.SecurityMode securityMode)
          Create a new exception with a message text.
 
Method Summary
protected static String formatMessage(String message, String uri, org.opcfoundation.ua.transport.security.SecurityMode securityMode)
           
 String getUri()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

uri

protected final String uri
Constructor Detail

ServerConnectionException

public ServerConnectionException(String message,
                                 String uri,
                                 org.opcfoundation.ua.transport.security.SecurityMode securityMode)
Create a new exception with a message text.

Parameters:
message - Exception message
uri - The URI to which the connection was tried.
securityMode - the requested security mode
Method Detail

formatMessage

protected static String formatMessage(String message,
                                      String uri,
                                      org.opcfoundation.ua.transport.security.SecurityMode securityMode)

getUri

public String getUri()
Returns:
the uri


Copyright © 2018. All rights reserved.