OPC Studio User's Guide and Reference
CustomException Constructor(String)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Portable Namespace > CustomException Class > CustomException Constructor : CustomException Constructor(String)
A message that describes the error.

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

Creates a new CustomException with its message string set to message, its HRESULT set to COR_E_APPLICATION, and its ExceptionInfo reference set to null.
Syntax
'Declaration
 
Public Function New( _
   ByVal message As String _
)
'Usage
 
Dim message As String
 
Dim instance As New CustomException(message)
public CustomException( 
   string message
)
public:
CustomException( 
   String^ message
)

Parameters

message
A message that describes the error.

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

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