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