com.prosysopc.ua.client
Class ConnectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.prosysopc.ua.UaException
              extended by com.prosysopc.ua.ServiceException
                  extended by com.prosysopc.ua.client.ConnectException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidServerEndpointException

public class ConnectException
extends ServiceException

Failure in connecting the UaClient to the UA Server.

See Also:
Serialized Form

Field Summary
protected  String uri
           
 
Constructor Summary
ConnectException(String message, String uri, org.opcfoundation.ua.transport.security.SecurityMode securityMode)
          Create a new exception with a message text.
ConnectException(String message, String uri, org.opcfoundation.ua.transport.security.SecurityMode securityMode, org.opcfoundation.ua.common.ServiceResultException cause)
          Create a new exception with a message text and reference to the original exception.
 
Method Summary
protected static String formatMessage(String message, String uri, org.opcfoundation.ua.transport.security.SecurityMode securityMode)
           
 String getUri()
           
 
Methods inherited from class com.prosysopc.ua.ServiceException
getDiagnosticInfo, getServiceResult, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
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

ConnectException

public ConnectException(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

ConnectException

public ConnectException(String message,
                        String uri,
                        org.opcfoundation.ua.transport.security.SecurityMode securityMode,
                        org.opcfoundation.ua.common.ServiceResultException cause)
Create a new exception with a message text and reference to the original exception.

Parameters:
message - Exception message
uri - The URI to which the connection was tried.
securityMode - The requested security mode
cause - The original service result exception.
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.