CogException Constructor (String, Exception)Cognex VisionPro 9.8 SR1
Initializes a new instance of the CogException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Namespace: Cognex.VisionPro.Exceptions
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 75.0.0.0 (75.0.0.0)
Syntax

protected CogException(
	string message,
	Exception innerException
)

Parameters

message
Type: System String
A message that describes the error.
innerException
Type: System Exception
The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.
See Also