DriverException(String, Int32, Exception) Constructor
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: ASCOMAssembly: ASCOM.Exceptions (in ASCOM.Exceptions.dll) Version: 6.0.0.0 (7.0.9999.9999)
public DriverException(
string message,
int number,
Exception inner
)
Public Sub New (
message As String,
number As Integer,
inner As Exception
)
- message String
- Descriptive text describing the cause of the exception
- number Int32
- Error code for the exception (80040400 - 80040FFF).
- inner Exception
- The inner exception that led to throwing this exception
Supported in: .NET 8.0 and later
Supported in: 2.0