Skip to content

Reference

OpcException Class

The exception that is thrown when an OPC operation has failed.

Reference

OpcException Class ​

Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcException Members
Also in
Opc.UaFx.Client

The exception that is thrown when an OPC operation has failed.

Syntax ​

csharp
public class OpcException : Exception
vbnet
Public Class OpcException
    Inherits Exception

Inheritance ​

Object → Exception → OpcException

Implements ​

Constructors ​

NameDescription
OpcException15 overloadsInitializes a new instance of the OpcException class with default properties.

Properties ​

NameDescription
CodeGets the according OpcStatusCode for the ErrorCode.
Contextsince v2.11Gets the OpcContext which was in use while the current OpcException was generated.
Dataoverride · since v2.7Gets a collection of key/value pairs that provide additional user-defined information about the exception.
ErrorCodeGets the error code of the OpcException.
HelpLinkoverride · since v2.7Gets or sets a link to the help file associated with this exception.
MessageoverrideGets a message that describes the current exception.
ResultGets the result information associated with the exception.
Sourceoverride · since v2.7Gets or sets the name of the application or the object that causes the error.
StackTraceoverride · since v2.7Gets a string representation of the immediate frames on the call stack.

Methods ​

NameDescription
GetBaseExceptionoverride · since v2.8Returns the System.Exception that is the root cause of one or more subsequent exceptions.
GetObjectDataoverrideSets the SerializationInfo with information about the exception.
ToStringoverride · since v2.8Creates and returns a string representation of the exception.

Inherits members from Exception.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.5–v2.59