Click or drag to resize

DataSetsBuilderAddFailure(DataSpec, Failure) Method

Adds an association between a DataSpec from the request and a Failure from the response, without dealing directly with the string keys that are used in the XML.

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public DataSetsBuilder AddFailure(
	DataSpec dataSpec,
	Failure failure
)

Parameters

dataSpec  DataSpec
The non-null DataSpec object that's processing resulted in failure.
failure  Failure
The non-null Failure that resulted when the API tried to generate a data set to satisfy dataSpec.

Return Value

DataSetsBuilder
this, for method chaining.
Exceptions
ExceptionCondition
InvalidOperationExceptionThis builder does not have access to the original DataSpecs object.
ArgumentNullExceptiondataSpec or failure is null.
ArgumentExceptiondataSpec is not found in the DataSpecs object that this builder holds internally, or if an item corresponding to dataSpec has already been added.
See Also