com.prosysopc.ua.client
Class ServerConnectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
uri
protected final String uri
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 messageuri - The URI to which the connection was tried.securityMode - the requested security mode
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.