Create a new ASCOM exception using the specified text message and error code.

Namespace: ASCOM
Assembly: ASCOM.Exceptions (in ASCOM.Exceptions.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public DriverException(
	string message,
	int number
)
Visual Basic
Public Sub New ( _
	message As String, _
	number As Integer _
)
Visual C++
public:
DriverException(
	String^ message, 
	int number
)

Parameters

message
Type: System..::..String
Descriptive text describing the cause of the exception
number
Type: System..::..Int32
Error code for the exception (80040400 - 80040FFF).

See Also