OpcException Class

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll

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

C#

[Serializable]
public class OpcException : Exception, ISerializable, _Exception


Inheritance ObjectException › OpcException


Attributes SerializableAttribute


Implements Serialization.ISerializable, InteropServices._Exception

Name Description
OpcException Initializes a new instance of the OpcException class with default properties.
OpcException(OpcResult) Initializes a new instance of the OpcException class using the result information specified.
OpcException(OpcStatusCode) Initializes a new instance of the OpcException class with the specified code.
OpcException(OpcStatusCode, Exception) Initializes a new instance of the OpcException class with the specified code and inner exception.
OpcException(OpcStatusCode, String) Initializes a new instance of the OpcException class with the message specified.
OpcException(OpcStatusCode, String, Exception) Initializes a new instance of the OpcException class with the message specified.
OpcException(Serialization.SerializationInfo, Serialization.StreamingContext) Initializes a new instance of the OpcException class with serialized data.
OpcException(String) Initializes a new instance of the OpcException class with the message specified.
Name Description
Code Gets the according OpcStatusCode for the ErrorCode.
Data Gets a collection of key/value pairs that provide additional user-defined information about the exception.
ErrorCode Gets the error code of the OpcException.
HelpLink Gets or sets a link to the help file associated with this exception.
Message Gets a message that describes the current exception.
Result Gets the result information associated with the exception.
Source Gets or sets the name of the application or the object that causes the error.
StackTrace Gets a string representation of the immediate frames on the call stack.
Name Description
GetBaseException Returns the System.Exception that is the root cause of one or more subsequent exceptions.
GetObjectData(Serialization.SerializationInfo, Serialization.StreamingContext) Sets the Serialization.SerializationInfo with information about the exception.
ToString