Connectivity Software User's Guide and Reference
UAServiceException Constructor(Exception,String,IDictionary,String,String,String,UAServiceResult)



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA Namespace > UAServiceException Class > UAServiceException Constructor : UAServiceException Constructor(Exception,String,IDictionary,String,String,String,UAServiceResult)
The exception that is the cause of the current exception.

The value of this parameter can be null (Nothing in Visual Basic).

The error message that explains the reason for the exception.

The value of this parameter can be null (Nothing in Visual Basic).

A collection of key/value pairs that provide additional user-defined information.

The value of this parameter cannot be null (Nothing in Visual Basic).

The individual elements of the parameter value can be null (Nothing in Visual Basic).

A link to the help file associated with this exception.

The value of this parameter can be null (Nothing in Visual Basic).

The name of the application or object that causes the error.

The value of this parameter can be null (Nothing in Visual Basic).

A string representation of the immediate frames on the call stack.

The value of this parameter can be null (Nothing in Visual Basic).

The service result associated with the exception.

The value of this parameter cannot be null (Nothing in Visual Basic).

Initializes a new instance of the class with complete exception information.
Syntax
'Declaration
 
Public Function New( _
   ByVal innerException As Exception, _
   ByVal message As String, _
   ByVal data As IDictionary, _
   ByVal helpLink As String, _
   ByVal source As String, _
   ByVal stackTrace As String, _
   ByVal serviceResult As UAServiceResult _
)
'Usage
 
Dim innerException As Exception
Dim message As String
Dim data As IDictionary
Dim helpLink As String
Dim source As String
Dim stackTrace As String
Dim serviceResult As UAServiceResult
 
Dim instance As New UAServiceException(innerException, message, data, helpLink, source, stackTrace, serviceResult)

Parameters

innerException
The exception that is the cause of the current exception.

The value of this parameter can be null (Nothing in Visual Basic).

message
The error message that explains the reason for the exception.

The value of this parameter can be null (Nothing in Visual Basic).

data
A collection of key/value pairs that provide additional user-defined information.

The value of this parameter cannot be null (Nothing in Visual Basic).

The individual elements of the parameter value can be null (Nothing in Visual Basic).

helpLink
A link to the help file associated with this exception.

The value of this parameter can be null (Nothing in Visual Basic).

source
The name of the application or object that causes the error.

The value of this parameter can be null (Nothing in Visual Basic).

stackTrace
A string representation of the immediate frames on the call stack.

The value of this parameter can be null (Nothing in Visual Basic).

serviceResult
The service result associated with the exception.

The value of this parameter cannot be null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also