Click or drag to resize

ServiceException Class

Indicates that the API servers failed to process a request because of temporary downtime or an unexpected error (sorry!).
Inheritance Hierarchy
SystemObject
  SystemException
    DegreeDays.ApiDegreeDaysApiException
      DegreeDays.ApiFailureException
        DegreeDays.ApiRequestFailureException
          DegreeDays.ApiServiceException

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

The ServiceException 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 propertyIsDueToServiceTemporarilyDown Returns true if this failure was caused by a temporary problem preventing the API service from functioning properly (sorry!).
Public propertyIsDueToServiceUnexpectedError Returns true if this failure was caused by a unexpected error in the API service (sorry!).
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

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

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

See Also