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: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
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

.NET Standard

Supported in: 2.0

See Also