Click or drag to resize

RateLimitException Class

Indicates that the API servers did not process a request because the RateLimit for the account's plan had been reached.
Inheritance Hierarchy
SystemObject
  SystemException
    DegreeDays.ApiDegreeDaysApiException
      DegreeDays.ApiFailureException
        DegreeDays.ApiRequestFailureException
          DegreeDays.ApiRateLimitException

Namespace: DegreeDays.Api
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public sealed class RateLimitException : RequestFailureException

The RateLimitException 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 propertyIsDueToRateLimitOnLocationChanges Returns true if this failure was caused by a rate limit on the number of times a location-limited account can change the location(s) that they access data from.
Public propertyMessage Overridden to return the Failure details as the exception message.
(Inherited from FailureException)
Public propertyResponseMetadata Gets the non-null metadata from the FailureResponse that brought details of this failure back from the API servers.
(Inherited from RequestFailureException)
Top
Remarks

The best way to handle this exception is often to wait until the rate limit is reset. You can figure out how long that is from the RateLimit object, accessible through the ResponseMetadata. Or you might want to consider upgrading your account to increase your rate limit. Visit the Degree Days.net website for more on this.

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

You can interrogate the IsDueToRateLimitXXX properties of this exception to find out more about the cause. There is only one such property at the moment, but more may be added in a future version of this client library.

See Also