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.
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.
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