Source |
The SourceDataException type exposes the following members.
Name | Description | |
---|---|---|
Failure |
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) | |
IsDueToSourceDataCoverage | 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. | |
IsDueToSourceDataErrors | Returns true if the requested data could not be generated because of errors in the recorded temperature data of the source weather station. | |
IsDueToSourceDataGranularity | Returns true if the requested data could not be generated because the source weather station's recorded temperature data was not fine-grained/detailed enough. | |
Message |
Overridden to return the Failure details as the exception
message.
(Inherited from FailureException) |
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.