195 references to Error
System.Data.Services.Client (195)
parent\Server\System\Data\Services\HttpProcessUtility.cs (11)
312
throw
Error
.HttpHeaderFailure(400, Strings.HttpProcessUtility_ContentTypeMissing);
450
throw
Error
.HttpHeaderFailure(400, Strings.HttpProcessUtility_EncodingNotSupported(name));
477
throw
Error
.HttpHeaderFailure(400, Strings.HttpProcessUtility_MediaTypeUnspecified);
482
throw
Error
.HttpHeaderFailure(400, Strings.HttpProcessUtility_MediaTypeRequiresSlash);
493
throw
Error
.HttpHeaderFailure(400, Strings.HttpProcessUtility_MediaTypeRequiresSubType);
517
throw
Error
.HttpHeaderFailure(400, Strings.HttpProcessUtility_MediaTypeRequiresSemicolonBeforeParameter);
683
throw
Error
.HttpHeaderFailure(400, Strings.HttpProcessUtility_MediaTypeMissingValue);
689
throw
Error
.HttpHeaderFailure(400, Strings.HttpProcessUtility_MediaTypeMissingValue);
741
throw
Error
.HttpHeaderFailure(400, Strings.HttpProcessUtility_EscapeCharWithoutQuotes(parameterName));
755
throw
Error
.HttpHeaderFailure(400, Strings.HttpProcessUtility_EscapeCharAtEnd(parameterName));
773
throw
Error
.HttpHeaderFailure(400, Strings.HttpProcessUtility_ClosingQuoteNotFound(parameterName));
parent\Server\System\Data\Services\Providers\EntityPropertyMappingInfo.cs (2)
141
throw
Error
.InvalidOperation(Strings.EpmSourceTree_InaccessiblePropertyOnType(srcPathPart, resourceType.ElementTypeName));
147
throw
Error
.InvalidOperation(!resourceProperty.IsKnownType ? Strings.EpmClientType_PropertyIsComplex(resourceProperty.PropertyName) :
System\Data\Services\Client\ALinq\DataServiceQueryProvider.cs (2)
127
throw
Error
.MethodNotSupported(mce);
133
throw
Error
.MethodNotSupported(mce);
System\Data\Services\Client\ALinq\ResourceBinder.cs (4)
291
throw
Error
.NotSupported(Strings.ALinq_CanOnlyApplyOneKeyPredicate);
376
throw
Error
.NotSupported(Strings.ALinq_CanOnlyApplyOneKeyPredicate);
1269
throw
Error
.MethodNotSupported(mce);
1291
throw
Error
.MethodNotSupported(mce);
System\Data\Services\Client\ALinq\UriWriter.cs (1)
79
throw
Error
.MethodNotSupported(m);
System\Data\Services\Client\AtomMaterializer.cs (9)
866
throw
Error
.InvalidOperation(Strings.Deserialize_MissingIdElement);
879
throw
Error
.InvalidOperation(Strings.Deserialize_Current(requiredType, entry.ResolvedObject.GetType()));
919
throw
Error
.InvalidOperation(Strings.Deserialize_MismatchAtomLinkLocalSimple);
924
throw
Error
.InvalidOperation(Strings.Deserialize_MismatchAtomLinkFeedPropertyNotCollection(property.PropertyName));
929
throw
Error
.InvalidOperation(Strings.Deserialize_MismatchAtomLinkEntryPropertyIsCollection(property.PropertyName));
1286
throw
Error
.NotSupported(Strings.ClientType_CollectionOfNonEntities);
1319
throw
Error
.InvalidOperation(Strings.Deserialize_ExpectingSimpleValue);
1640
throw
Error
.InvalidOperation(Strings.Deserialize_Current(expectedEntryType, entry.ResolvedObject.GetType()));
1741
throw
Error
.InvalidOperation(Strings.Deserialize_MissingIdElement);
System\Data\Services\Client\AtomParser.cs (15)
483
Error
.ThrowInternalError(InternalError.UnexpectedXmlNodeTypeWhenReading);
488
Error
.ThrowInternalError(InternalError.UnexpectedXmlNodeTypeWhenReading);
542
throw
Error
.InvalidOperation(Strings.Deserialize_ExpectedEmptyMediaLinkEntryContent);
555
throw
Error
.InvalidOperation(Strings.Deserialize_ContentPlusPropertiesNotAllowed);
574
throw
Error
.InvalidOperation(Strings.Deserialize_NotApplicationXml);
605
throw
Error
.InvalidOperation(Strings.Context_MissingEditLinkInResponseBody);
616
throw
Error
.InvalidOperation(Strings.Context_MissingSelfLinkInResponseBody);
626
throw
Error
.InvalidOperation(Strings.Context_MissingEditMediaLinkInResponseBody);
755
throw
Error
.InvalidOperation(Strings.Deserialize_MixedTextWithComment);
774
throw
Error
.InvalidOperation(Strings.Deserialize_ExpectingSimpleValue);
788
throw
Error
.InvalidOperation(Strings.Deserialize_ExpectingSimpleValue);
931
throw
Error
.InvalidOperation(Strings.Context_TrackingExpectsAbsoluteUri);
949
throw
Error
.InvalidOperation(Strings.Deserialize_ContentPlusPropertiesNotAllowed);
967
throw
Error
.InvalidOperation(Strings.Deserialize_MissingIdElement);
973
throw
Error
.BatchStreamContentExpected(BatchStreamState.GetResponse);
System\Data\Services\Client\BaseAsyncResult.cs (4)
214
throw
Error
.Argument(Strings.Context_DidNotOriginateAsync, "asyncResult");
229
throw
Error
.Argument(Strings.Context_AsyncAlreadyDone, "asyncResult");
245
throw
Error
.InvalidOperation(Strings.Context_OperationCanceled);
255
throw
Error
.InvalidOperation(Strings.DataServiceException_GeneralError, result.Failure);
System\Data\Services\Client\BatchStream.cs (48)
174
get { throw
Error
.NotSupported(); }
180
get { throw
Error
.NotSupported(); }
181
set { throw
Error
.NotSupported(); }
201
throw
Error
.NotSupported();
211
throw
Error
.NotSupported();
226
throw
Error
.ArgumentOutOfRange("offset");
231
throw
Error
.ArgumentOutOfRange("origin");
267
throw
Error
.NotSupported();
276
throw
Error
.NotSupported();
318
throw
Error
.BatchStreamMissingBoundary();
407
throw
Error
.BatchStreamInvalidBatchFormat();
453
throw
Error
.BatchStreamInvalidBatchFormat();
480
throw
Error
.BatchStreamInvalidBatchFormat();
498
throw
Error
.BatchStreamMissingEndChangesetDelimiter();
505
throw
Error
.BatchStreamMoreDataAfterEndOfBatch();
512
throw
Error
.BatchStreamInvalidDelimiter(delimiter);
525
throw
Error
.BatchStreamMissingEndChangesetDelimiter();
529
throw
Error
.BatchStreamInvalidBatchFormat();
535
throw
Error
.BatchStreamInvalidDelimiter(delimiter);
556
throw
Error
.BatchStreamInvalidNumberOfHeadersAtOperationStart(
565
throw
Error
.BatchStreamMissingOrInvalidContentEncodingHeader(
584
throw
Error
.BatchStreamInvalidContentTypeSpecified(
597
throw
Error
.BatchStreamInvalidNumberOfHeadersAtChangeSetStart(XmlConstants.HttpContentType, XmlConstants.HttpContentLength);
602
throw
Error
.BatchStreamInvalidContentTypeSpecified(
611
throw
Error
.BatchStreamMissingContentTypeHeader(XmlConstants.HttpContentType);
637
throw
Error
.BatchStreamInvalidContentLengthSpecified(text);
699
throw
Error
.BatchStreamContentExpected(this.batchState);
722
throw
Error
.BatchStreamContentUnexpected(this.batchState);
802
throw
Error
.BatchStreamInvalidHttpMethodName(methodName);
815
throw
Error
.BatchStreamInvalidDelimiter(boundary);
822
throw
Error
.BatchStreamInvalidDelimiter(boundary);
875
Error
.ThrowObjectDisposed(this.GetType());
1191
throw
Error
.BatchStreamInternalBufferRequestTooSmall();
1321
throw
Error
.BatchStreamInvalidHeaderValueSpecified(line);
1357
throw
Error
.BatchStreamInvalidMethodHeaderSpecified(line);
1364
throw
Error
.BatchStreamInvalidMethodHeaderSpecified(line);
1375
throw
Error
.BatchStreamInvalidHttpVersionSpecified(httpVersion, XmlConstants.HttpVersionInBatching);
1414
throw
Error
.BatchStreamOnlyGETOperationsCanBeSpecifiedInBatch();
1431
throw
Error
.BatchStreamGetMethodNotSupportInChangeset();
1436
throw
Error
.BatchStreamInvalidOperationHeaderSpecified();
1464
Error
.ThrowObjectDisposed(this.GetType());
1521
get { throw
Error
.NotSupported(); }
1527
get { throw
Error
.NotSupported(); }
1528
set { throw
Error
.NotSupported(); }
1565
Error
.ThrowObjectDisposed(this.GetType());
1580
throw
Error
.NotSupported();
1587
throw
Error
.NotSupported();
1596
throw
Error
.NotSupported();
System\Data\Services\Client\Binding\DataServiceCollectionOfT.cs (1)
444
throw
Error
.ArgumentNull("item");
System\Data\Services\Client\ClientConvert.cs (2)
202
throw
Error
.InvalidOperation(Strings.Deserialize_Current(propertyType.ToString(), propertyValue), ex);
207
throw
Error
.InvalidOperation(Strings.Deserialize_Current(propertyType.ToString(), propertyValue), ex);
System\Data\Services\Client\ClientType.cs (10)
167
throw
Error
.InvalidOperation(Strings.ClientType_KeysOnDifferentDeclaredType(this.ElementTypeName));
172
throw
Error
.InvalidOperation(Strings.ClientType_KeysMustBeSimpleTypes(this.ElementTypeName));
260
throw
Error
.InvalidOperation(Strings.ClientType_MissingProperty(this.ElementTypeName, m));
278
throw
Error
.InvalidOperation(Strings.ClientType_NoSettableFields(this.ElementTypeName));
557
throw
Error
.NotSupported(Strings.ClientType_MultipleImplementationNotSupported);
664
throw
Error
.InvalidOperation(Strings.ClientType_MissingProperty(this.ElementTypeName, propertyName));
701
throw
Error
.InvalidOperation(Strings.ClientType_Ambiguous(wireClassName, userType));
758
throw
Error
.InvalidOperation(Strings.ClientType_MissingMimeTypeProperty(attribute.DataPropertyName, attribute.MimeTypePropertyName));
784
throw
Error
.InvalidOperation(Strings.ClientType_MissingMediaEntryProperty(
1048
throw
Error
.InvalidOperation(Strings.ClientType_MissingProperty(value.GetType().ToString(), propertyName));
System\Data\Services\Client\DataServiceContext.cs (65)
168
throw
Error
.Argument(Strings.Context_BaseUri, "serviceRoot");
365
throw
Error
.ArgumentOutOfRange("Timeout");
550
throw
Error
.Argument(Strings.Context_DidNotOriginateAsync, "asyncResult");
1228
throw
Error
.InvalidOperation(Strings.Context_RelationAlreadyContained);
1305
throw
Error
.InvalidOperation(Strings.Context_NoRelationWithInsertEnd);
1396
throw
Error
.InvalidOperation(Strings.Context_EntityAlreadyContained);
1424
throw
Error
.InvalidOperation(Strings.Context_AddRelatedObjectSourceDeleted);
1432
throw
Error
.InvalidOperation(Strings.Context_AddRelatedObjectCollectionOnly);
1444
throw
Error
.Argument(Strings.Context_RelationNotRefOrCollection, "target");
1455
throw
Error
.InvalidOperation(Strings.Context_EntityAlreadyContained);
1525
throw
Error
.InvalidOperation(Strings.Context_EntityNotContained);
1578
throw
Error
.Argument(Strings.Context_EntityNotContained, "entity");
1660
failure =
Error
.InvalidOperation(description);
1809
throw
Error
.InvalidOperation(Strings.Context_RelationAlreadyContained);
1858
throw
Error
.InvalidOperation(Strings.Context_EntityAlreadyContained);
1862
throw
Error
.InvalidOperation(Strings.Context_DifferentEntityAlreadyContained);
2184
throw
Error
.InvalidOperation(Strings.Deserialize_Current(userType, payloadType));
2341
throw
Error
.InvalidOperation(Strings.Serializer_NullKeysAreNotSupported(property.PropertyName));
2347
throw
Error
.InvalidOperation(Strings.Context_CannotConvertKey(value));
2382
throw
Error
.InternalError(InternalError.UnvalidatedEntityState);
2421
Error
.ThrowBatchUnexpectedContent(InternalError.LinkNotAddedState);
2437
Error
.ThrowBatchUnexpectedContent(InternalError.EntryNotModified);
2462
Error
.ThrowBatchUnexpectedContent(InternalError.LinkBadState);
2490
throw
Error
.InvalidOperation(Strings.Serializer_NullKeysAreNotSupported(property.PropertyName));
2525
throw
Error
.Argument(Strings.Content_EntityIsNotEntityType, "entity");
2539
throw
Error
.Argument(Strings.Content_EntityWithoutKey, "entity");
2557
throw
Error
.ArgumentOutOfRange("options");
2563
throw
Error
.ArgumentOutOfRange("options");
2671
throw
Error
.InvalidOperation(Strings.Context_LinkResourceInsertFailure, sourceResource.SaveError);
2678
throw
Error
.InvalidOperation(Strings.Context_LinkResourceInsertFailure, targetResource.SaveError);
2888
Error
.ThrowInternalError(InternalError.UnvalidatedEntityState);
3075
Error
.ThrowBatchUnexpectedContent(InternalError.EntityNotDeleted);
3100
Error
.ThrowBatchUnexpectedContent(InternalError.EntityNotAddedState);
3242
throw
Error
.InvalidOperation(Strings.Context_NoLoadWithInsertEnd);
3450
throw
Error
.InvalidOperation(Strings.Context_EntityNotContained);
3491
throw
Error
.InvalidOperation(Strings.Context_RelationNotRefOrCollection);
3501
throw
Error
.InvalidOperation(Strings.Context_AddLinkCollectionOnly);
3505
throw
Error
.InvalidOperation(Strings.Context_SetLinkReferenceOnly);
3516
throw
Error
.Argument(Strings.Context_RelationNotRefOrCollection, "target");
3525
throw
Error
.InvalidOperation(Strings.Context_NoRelationWithDeleteEnd);
3540
throw
Error
.InvalidOperation(Strings.Context_NoRelationWithInsertEnd);
3563
throw
Error
.Argument(Strings.Context_EntitySetName, "entitySetName");
3737
throw
Error
.InvalidOperation(Strings.Context_NoLoadWithInsertEnd);
3783
throw
Error
.InvalidOperation(Strings.Context_UnexpectedZeroRawRead);
4326
Error
.ThrowInternalError(InternalError.InvalidBeginNextChange);
4475
Error
.ThrowInternalError(errorcode);
4487
Error
.ThrowInternalError(errorcode);
4626
throw
Error
.InvalidOperation(Strings.Context_MLEWithoutSaveStream(type.ElementTypeName));
4652
throw
Error
.InvalidOperation(
4723
throw
Error
.InvalidOperation(
4950
throw
Error
.NotSupported(Strings.Deserialize_NoLocationHeader);
5135
throw
Error
.NotSupported(Strings.Context_BatchNotSupportedForMediaLink);
5144
throw
Error
.NotSupported(Strings.Context_BatchNotSupportedForMediaLink);
5283
throw
Error
.InvalidOperation(Strings.Batch_ExpectedResponse(1));
5303
throw
Error
.InvalidOperation(Strings.Batch_ExpectedContentType(this.batchResponse.ContentType), inner);
5308
Error
.ThrowBatchExpectedResponse(InternalError.NullResponseStream);
5412
Error
.ThrowBatchUnexpectedContent(InternalError.UnexpectedBeginChangeSet);
5553
throw
Error
.NotSupported(Strings.Deserialize_NoLocationHeader);
5562
throw
Error
.InvalidOperation(Strings.Deserialize_UnknownMimeTypeSpecified(mime));
5649
Error
.ThrowBatchExpectedResponse(InternalError.UnexpectedBatchState);
5665
throw
Error
.InvalidOperation(Strings.Batch_IncompleteResponseCount);
5684
Error
.ThrowBatchUnexpectedContent(InternalError.ChangeResponseMissingContentID);
5695
Error
.ThrowBatchUnexpectedContent(InternalError.ChangeResponseUnknownContentID);
5732
Error
.ThrowInternalError(InternalError.InvalidEndGetRequestStreamContentLength);
6051
Error
.ThrowInternalError(InternalError.SaveNextChangeIncomplete);
System\Data\Services\Client\DataServiceKeyAttribute.cs (1)
51
throw
Error
.Argument(Strings.DSKAttribute_MustSpecifyAtleastOnePropertyName, "keyNames");
System\Data\Services\Client\DataServiceQuery.cs (1)
44
throw
Error
.NotImplemented();
System\Data\Services\Client\DataServiceStreamResponse.cs (1)
125
Error
.ThrowObjectDisposed(this.GetType());
System\Data\Services\Client\Error.cs (1)
191
return
Error
.NotSupported(Strings.ALinq_MethodNotSupported(m.Method.Name));
System\Data\Services\Client\MaterializeFromAtom.cs (5)
348
throw
Error
.NotSupported();
465
throw
Error
.NotSupported(Strings.Deserialize_GetEnumerator);
580
throw
Error
.InvalidOperation(Strings.Deserialize_MixedTextWithComment);
594
throw
Error
.InvalidOperation(Strings.Deserialize_ExpectingSimpleValue);
600
throw
Error
.InvalidOperation(Strings.Deserialize_ExpectingSimpleValue);
System\Data\Services\Client\QueryResponse.cs (1)
82
throw System.Data.Services.Client.
Error
.InvalidOperation(Strings.Context_BatchExecuteError, this.Error);
System\Data\Services\Client\QueryResult.cs (1)
722
Error
.ThrowInternalError(errorcode);
System\Data\Services\Client\SendingRequestEventArgs.cs (1)
63
throw
Error
.Argument(Strings.Context_SendingRequestEventArgsNotHttp, "value");
System\Data\Services\Client\Util.cs (6)
147
throw
Error
.ArgumentNull(parameterName);
165
throw
Error
.Argument(Strings.Util_EmptyString, parameterName);
182
throw
Error
.Argument(Strings.Util_EmptyArray, parameterName);
189
throw
Error
.Argument(Strings.Util_NullArrayElement, parameterName);
211
throw
Error
.ArgumentOutOfRange(parameterName);
387
Error
.ThrowInternalError(errorcode);
System\Data\Services\Client\Xml\XmlAtomErrorReader.cs (3)
85
throw
Error
.InvalidOperation(Strings.Deserialize_MixedTextWithComment);
95
throw
Error
.InvalidOperation(Strings.Deserialize_ExpectingSimpleValue);
100
throw
Error
.InvalidOperation(Strings.Deserialize_ExpectingSimpleValue);