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

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

The FailureResponse type exposes the following members.

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
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
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