Click or drag to resize

FailureResponse Class

A type of API Response that indicates a failure in the server-side processing of a Request.
Inheritance Hierarchy
SystemObject
  DegreeDays.ApiResponse
    DegreeDays.ApiFailureResponse

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

The FailureResponse type exposes the following members.

Properties
 NameDescription
Public propertyFailure Gets the non-null Failure object that contains details of the failure in the API's server-side processing of the request.
Public propertyMetadata Gets a non-null ResponseMetadata object containing metadata sent back with the response from the API servers, including details of the account's current rate limit.
(Inherited from Response)
Top
Methods
 NameDescription
Public methodEquals Returns true if obj is a FailureResponse with an equal Failure (the Metadata is not considered in the equality test).
(Overrides ObjectEquals(Object))
Public methodGetHashCode Overridden to ensure consistency with Equals.
(Overrides ObjectGetHashCode)
Public methodToString Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides ObjectToString)
Top
Remarks

You will probably only need to deal with this class directly if you are working directly with the IRequestProcessor interface. If you use DegreeDaysApi instead, any FailureResponse objects will be turned into RequestFailureException objects automatically.

Thread Safety
Instances of this class are immutable. You can safely reuse them and call them from multiple threads at once.
See Also