Click or drag to resize

DriverException Constructor (String, Int32, Exception)

Create a new ASCOM exception based on another exception plus additional descriptive text and error code. This member is required for a well-behaved exception class. For example, if a driver receives an exception (perhaps a COMException) from some other component yet it wants to report some meaningful error that resulted from the other error, it can package the original error in the InnerException member of the exception it generates.

Namespace:  ASCOM
Assembly:  ASCOM.Exceptions (in ASCOM.Exceptions.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
public DriverException(
	string message,
	int number,
	Exception inner


Type: SystemString
Descriptive text describing the cause of the exception
Type: SystemInt32
Error code for the exception (80040400 - 80040FFF).
Type: SystemException
The inner exception that led to throwing this exception
See Also