Click or drag to resize

ServiceExceptionIsDueToServiceUnexpectedError Property

Returns true if this failure was caused by a unexpected error in the API service (sorry!).

Namespace: DegreeDays.Api
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public bool IsDueToServiceUnexpectedError { get; }

Property Value

Boolean
Remarks

If an unexpected error in the API service should occur, it is quite likely that it would only be triggered by a specific request (e.g. a request for data from a particular weather station). This is different to the service going temporarily down and affecting most or all requests until the problem is resolved.

If a request triggers a "ServiceUnexpectedError" failure, there probably won't be any point in trying that particular request repeatedly. Other requests will probably continue to work OK, but the problem request, if repeatedly submitted, will probably repeatedly fail until the underlying bug in the system is addressed. This is the sort of thing that would typically take at least a day or two, or potentially much longer (some bugs are beyond our sphere of control).

If you're getting this type of failure repeatedly, and it's getting in the way of what you're trying to achieve with the API, please email us to let us know. Our logging system should alert us each time an error like this occurs, but it's always useful to hear more information. Also, if it's not something we can fix on our end, we might well be able to suggest some sort of workaround.

See Also