Click or drag to resize
SourceDataException Class
Indicates a Failure to generate a data set caused by problems with the source temperature data for the Location and Period requested.
Inheritance Hierarchy

Namespace: DegreeDays.Api.Data
Assembly: DegreeDaysApi (in DegreeDaysApi.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public sealed class SourceDataException : FailureException

The SourceDataException type exposes the following members.

Properties
  NameDescription
Public propertyFailure
Gets the non-null Failure object containing details of the failure on the API's servers that led to this exception on the client.
(Inherited from FailureException.)
Public propertyIsDueToSourceDataCoverage
Returns true if the requested data could not be generated because the source weather station's recorded temperature data did not cover the requested period in time.
Public propertyIsDueToSourceDataErrors
Returns true if the requested data could not be generated because of errors in the recorded temperature data of the source weather station.
Public propertyMessage
Overridden to return the Failure details as the exception message.
(Inherited from FailureException.)
Top
Remarks

For a LocationDataRequest containing specifications for multiple sets of data, it is possible for some to succeed and others to fail if they are sufficiently different (e.g. covering different periods in time).

This exception corresponds to any failure code starting with "SourceData".

You can interrogate the IsDueToSourceDataXXX properties of this exception to find out more about the cause. But do note that it is possible for none of those properties to hold true if a relevant new failure code is added into the API. Be prepared for this in your handling.

Thread Safety
Instances of this class are immutable. You can safely reuse them and call them from multiple threads at once.
See Also