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



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

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