InvalidJsonDateTimeException Class

This exception is used when a JSON date-time value returned by the device is not a UTC date-time.

Definition

Namespace: ASCOM.Alpaca.Clients
Assembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
C#
public class InvalidJsonDateTimeException : Exception
Inheritance
Object    Exception    InvalidJsonDateTimeException

Constructors

InvalidJsonDateTimeException Initializes a new instance of the InvalidJsonDateTimeException class.
InvalidJsonDateTimeException(String) Initializes a new instance of the InvalidJsonDateTimeException class with a specified error message.
InvalidJsonDateTimeException(String, String, DateTime) Initializes a new instance of the InvalidJsonDateTimeException class with a specified error message.

Properties

InvalidDateTime The invalid date time value returned by the Alpaca device
JsonDateTimeString Gets or sets the JSON-formatted date-time string returned by the device.

Extension Methods

ErrorCode Extension method to get the Alpaca Error Code for an Exception. Returns UnspecifiedError if it cannot find a better code
(Defined by ExceptionHelpers)

Version Information

Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10

See Also