Click or drag to resize

RequestFailureException Class

Superclass of exceptions that indicate that the API's processing of a request resulted in a Failure.
Inheritance Hierarchy
SystemObject
  SystemException
    DegreeDays.ApiDegreeDaysApiException
      DegreeDays.ApiFailureException
        DegreeDays.ApiRequestFailureException
          DegreeDays.Api.DataLocationException
          DegreeDays.ApiInvalidRequestException
          DegreeDays.ApiRateLimitException
          DegreeDays.ApiServiceException

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

The RequestFailureException 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 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.
Top
Remarks

The key point here is that the API servers were not able to process the request at all, and their response contained only:

  • Details of the failure, exposed through the subclasses of this exception type and through the Failure object itself (accessible via the Failure property).
  • Response metadata, accessible via the ResponseMetadata property of this exception.

This abstract class is not designed to be extended by third-party code, which is why it does not have an accessible constructor.

See Also