OPC Studio User's Guide and Reference
InnerException Property (OperationException)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.OperationModel Namespace > OperationException Class : InnerException Property
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shadows ReadOnly Property InnerException As Exception
'Usage
 
Dim instance As OperationException
Dim value As Exception
 
value = instance.InnerException
[NotNull()]
public new Exception InnerException {get;}
[NotNull()]
public:
new property Exception^ InnerException {
   Exception^ get();
}

Property Value

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

This value of this property can be null (Nothing in Visual Basic).

Remarks

Operation exception always contains a (non-null) inner exception. This is because it is thrown as a wrapper exception by single-operation methods, but multiple-operation methods return the inner exception through their results, and therefore the inner exception is the one that actually determines the error cause.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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