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 Object › Exception › OpcException
Attributes SerializableAttribute
Implements Serialization.ISerializable, InteropServices._Exception
Name | Description |
---|---|
OpcException | Initializes a new instance of the OpcException class with default properties. |
OpcException(OpcContext) | Initializes a new instance of the OpcException class with default properties and the context specified. |
OpcException(OpcContext, OpcResult) | Initializes a new instance of the OpcException class using the context and result information specified. |
OpcException(OpcContext, OpcStatusCode) | Initializes a new instance of the OpcException class with the specified context and code . |
OpcException(OpcContext, OpcStatusCode, Exception) | Initializes a new instance of the OpcException class with the specified context , code and inner exception. |
OpcException(OpcContext, OpcStatusCode, String) | Initializes a new instance of the OpcException class with the context , code and message specified. |
OpcException(OpcContext, OpcStatusCode, String, Exception) | Initializes a new instance of the OpcException class with the context , code , message and inner specified. |
OpcException(OpcContext, String) | Initializes a new instance of the OpcException class with the context and message specified. |
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 code and message specified. |
OpcException(OpcStatusCode, String, Exception) | Initializes a new instance of the OpcException class with the code , message and inner exception 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. |
Context | Gets the OpcContext which was in use while the current OpcException was generated. |
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 |