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
Exception NtpClockSelectionException

Constructors

NameDescription
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.cs

Initializes a new instance of the NtpClockSelectionException class.

public NtpClockSelectionException()

NtpClockSelectionException(string)

NtpClockSelectionException.cs

Initializes a new instance of the NtpClockSelectionException class with a message.

public NtpClockSelectionException(string message)
Parameters
message string
The message that describes the error.

NtpClockSelectionException(string, Exception)

NtpClockSelectionException.cs

Initializes a new instance of the NtpClockSelectionException class with a message and an inner exception.

public NtpClockSelectionException(string message, Exception innerException)
Parameters
message string
The message that describes the error.
innerException Exception
The exception that caused this one.

Properties

NameDescription
FailedServersGets the clients whose server gave no valid reply, with the reason.
MeasurementsGets the measurements of the servers that answered.

Gets the clients whose server gave no valid reply, with the reason.

public IReadOnlyDictionary<NtpClient, Exception> FailedServers { get; }

Gets the measurements of the servers that answered.

public IReadOnlyList<NtpServerMeasurement> Measurements { get; }