NtpClockSelectionException Class
The exception thrown when the servers queried by NtpClient.MeasureAsync answered, but no majority of them agrees on the time.
public sealed class NtpClockSelectionException : Exception- Inheritance
ExceptionNtpClockSelectionException
Constructors
| Name | Description |
|---|---|
| NtpClockSelectionException() | Initializes a new instance of the NtpClockSelectionException class. |
| NtpClockSelectionException(string) | Initializes a new instance of the NtpClockSelectionException class with a message. |
| NtpClockSelectionException(string, Exception) | Initializes a new instance of the NtpClockSelectionException class with a message and an inner exception. |
NtpClockSelectionException overloads
NtpClockSelectionException()
NtpClockSelectionException.csInitializes a new instance of the NtpClockSelectionException class.
public NtpClockSelectionException()NtpClockSelectionException(string)
NtpClockSelectionException.csInitializes a new instance of the NtpClockSelectionException class with a message.
public NtpClockSelectionException(string message)Parameters
messagestring- The message that describes the error.
NtpClockSelectionException(string, Exception)
NtpClockSelectionException.csInitializes a new instance of the NtpClockSelectionException class with a message and an inner exception.
Properties
| Name | Description |
|---|---|
| FailedServers | Gets the clients whose server gave no valid reply, with the reason. |
| Measurements | Gets the measurements of the servers that answered. |
FailedServers
NtpClockSelectionException.csGets the clients whose server gave no valid reply, with the reason.
public IReadOnlyDictionary<NtpClient, Exception> FailedServers { get; }Property value
Measurements
NtpClockSelectionException.csGets the measurements of the servers that answered.
public IReadOnlyList<NtpServerMeasurement> Measurements { get; }