12 instantiations of DataServiceException
System.Data.Services (12)
System\Data\Services\DataServiceException.cs (7)
306return new DataServiceException(404, errorMessage); 332return new DataServiceException(412, message); 344return new DataServiceException(412, null, message, null, innerException); 355return new DataServiceException(400, message); 367return new DataServiceException(400, null, message, null, innerException); 377DataServiceException result = new DataServiceException(405, message); 390return new DataServiceException(501, message);
System\Data\Services\Epm\EpmSyndicationContentSerializer.cs (2)
186throw new DataServiceException(500, null, exceptionMsg, null, null); 200throw new DataServiceException(500, null, exceptionMsg, null, e);
System\Data\Services\Error.cs (1)
27return Trace(new DataServiceException(errorCode, message));
System\Data\Services\ErrorHandler.cs (1)
185throw new DataServiceException(
System\Data\Services\Providers\DataServiceProviderWrapper.cs (1)
1073throw new DataServiceException(500, exceptionString);
315 references to DataServiceException
System.Data.Services (315)
System\Data\Services\BatchServiceHost.cs (1)
321throw DataServiceException.CreateBadRequestError(
System\Data\Services\DataService.cs (34)
208throw DataServiceException.CreateBadRequestError(Strings.DataService_ExpandDepthExceeded(actualExpandDepth, this.configuration.MaxExpandDepth)); 213throw DataServiceException.CreateBadRequestError(Strings.DataService_ExpandCountExceeded(actualExpandCount, this.configuration.MaxExpandCount)); 523throw DataServiceException.CreateBadRequestError(Strings.DataService_ETagValueNotValid(host.RequestIfMatch)); 528throw DataServiceException.CreateBadRequestError(Strings.DataService_ETagValueNotValid(host.RequestIfNoneMatch)); 651throw DataServiceException.CreateBadRequestError(Strings.DataService_BothIfMatchAndIfNoneMatchHeaderSpecified); 736throw DataServiceException.CreateMethodNotAllowed( 849throw DataServiceException.CreateBadRequestError(Strings.DataService_ETagCannotBeSpecified(host.AbsoluteRequestUri)); 910throw DataServiceException.CreateResourceNotFound(description.LastSegmentInfo.Identifier); 1036throw DataServiceException.CreateBadRequestError(Strings.DataService_ETagSpecifiedForPost); 1041throw DataServiceException.CreateMethodNotAllowed( 1104throw DataServiceException.CreateMethodNotAllowed( 1110throw DataServiceException.CreateMethodNotAllowed(Strings.DataService_CannotUpdateSetReferenceLinks, XmlConstants.HttpMethodDelete); 1116throw DataServiceException.CreateBadRequestError(Strings.DataService_IfNoneMatchHeaderNotSupportedInPut); 1120throw DataServiceException.CreateBadRequestError(Strings.DataService_ETagCannotBeSpecified(host.AbsoluteRequestUri)); 1124throw DataServiceException.CreateBadRequestError(Strings.DataService_CannotUpdateKeyProperties(description.Property.Name)); 1159throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ResourceCanBeCrossReferencedOnlyForBindOperation); 1165throw DataServiceException.CreateBadRequestError(Strings.DataService_IfNoneMatchHeaderNotSupportedInDelete); 1204throw DataServiceException.CreateBadRequestError(Strings.DataService_IfNoneMatchHeaderNotSupportedInDelete); 1209throw DataServiceException.CreateBadRequestError(Strings.DataService_CannotUpdateKeyProperties(description.Property.Name)); 1232throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(description.LastSegmentInfo.Identifier)); 1239throw DataServiceException.CreateBadRequestError(Strings.DataService_IfNoneMatchHeaderNotSupportedInDelete); 1255throw DataServiceException.CreateMethodNotAllowed( 1353throw DataServiceException.CreateResourceNotFound(description.LastSegmentInfo.Identifier); 1438throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ValuesCanBeReturnedForPrimitiveTypesOnly); 1467throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidUriForMediaResource(host.AbsoluteRequestUri)); 1609throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(description.LastSegmentInfo.Identifier)); 1628throw DataServiceException.CreateBadRequestError(Strings.DataService_ETagNotSupportedInUnbind); 1712DataServiceException dse = ex as DataServiceException; 1821throw DataServiceException.CreateMethodNotAllowed( 1835throw DataServiceException.CreateBadRequestError(Strings.DataService_InvalidContentTypeForBatchRequest); 2287throw DataServiceException.CreateBadRequestError(Strings.BadRequest_DereferencingNullPropertyValue(description.SegmentInfos[i].Identifier)); 2631throw DataServiceException.CreateBadRequestError(Strings.DataService_ContentIdMustBeAnInteger(contentIdValue)); 2636throw DataServiceException.CreateBadRequestError(Strings.DataService_ContentIdMustBeUniqueInBatch(contentId));
System\Data\Services\DataServiceConfiguration.cs (7)
568/// <exception cref="DataServiceException">Thrown if <paramref name="requiredRights"/> aren't available.</exception> 576throw DataServiceException.CreateForbidden(); 583/// <exception cref="DataServiceException">Thrown if <paramref name="singleResult"/> aren't available.</exception> 594/// <exception cref="DataServiceException">Thrown if <paramref name="requiredRights"/> aren't available.</exception> 603throw DataServiceException.CreateForbidden(); 610/// <exception cref="DataServiceException">Thrown if <paramref name="singleResult"/> aren't available.</exception> 857throw DataServiceException.CreateBadRequestError(Strings.DataServiceConfiguration_V2ResponseForV1Server);
System\Data\Services\DataServiceException.cs (17)
271internal static DataServiceException CreateDeepRecursion(int recursionLimit) 273return DataServiceException.CreateBadRequestError(Strings.BadRequest_DeepRecursion(recursionLimit)); 278internal static DataServiceException CreateDeepRecursion_General() 280return DataServiceException.CreateBadRequestError(Strings.BadRequest_DeepRecursion_General); 285internal static DataServiceException CreateForbidden() 294internal static DataServiceException CreateResourceNotFound(string identifier) 303internal static DataServiceException ResourceNotFoundError(string errorMessage) 311internal static DataServiceException CreateSyntaxError() 319internal static DataServiceException CreateSyntaxError(string message) 321return DataServiceException.CreateBadRequestError(message); 329internal static DataServiceException CreatePreConditionFailedError(string message) 341internal static DataServiceException CreatePreConditionFailedError(string message, Exception innerException) 352internal static DataServiceException CreateBadRequestError(string message) 364internal static DataServiceException CreateBadRequestError(string message, Exception innerException) 374internal static DataServiceException CreateMethodNotAllowed(string message, string allow) 377DataServiceException result = new DataServiceException(405, message); 387internal static DataServiceException CreateMethodNotImplemented(string message)
System\Data\Services\DataServiceHostWrapper.cs (3)
175throw DataServiceException.CreateMethodNotImplemented(Strings.DataService_NotImplementedException); 291throw DataServiceException.CreateBadRequestError(Strings.BadRequest_NullRequestStream); 392throw DataServiceException.CreateBadRequestError(Strings.BadRequest_NullResponseStream);
System\Data\Services\Epm\EpmCustomContentDeSerializer.cs (3)
69throw DataServiceException.CreateBadRequestError(Strings.EpmDeserialize_MixedContent(resourceType.FullName)); 109throw DataServiceException.CreateBadRequestError(Strings.EpmDeserialize_MixedContent(resourceType.FullName)); 143throw DataServiceException.CreateBadRequestError(Strings.EpmDeserialize_InvalidXmlEntity);
System\Data\Services\Error.cs (35)
25internal static DataServiceException HttpHeaderFailure(int errorCode, string message) 32internal static DataServiceException BatchStreamMissingBoundary() 34return Trace(DataServiceException.CreateBadRequestError(Strings.DataService_InvalidContentTypeForBatchRequest)); 40internal static DataServiceException BatchStreamContentExpected(BatchStreamState state) 42return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_ContentExpected(state.ToString()))); 48internal static DataServiceException BatchStreamContentUnexpected(BatchStreamState state) 50return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_ContentUnexpected(state.ToString()))); 55internal static DataServiceException BatchStreamGetMethodNotSupportInChangeset() 57return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_GetMethodNotSupportedInChangeset)); 62internal static DataServiceException BatchStreamInvalidBatchFormat() 64return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_InvalidBatchFormat)); 70internal static DataServiceException BatchStreamInvalidDelimiter(string delimiter) 72return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_InvalidDelimiter(delimiter))); 77internal static DataServiceException BatchStreamMissingEndChangesetDelimiter() 79return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_MissingEndChangesetDelimiter)); 85internal static DataServiceException BatchStreamInvalidHeaderValueSpecified(string headerValue) 87return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_InvalidHeaderValueSpecified(headerValue))); 93internal static DataServiceException BatchStreamInvalidContentLengthSpecified(string contentLength) 95return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_InvalidContentLengthSpecified(contentLength))); 100internal static DataServiceException BatchStreamOnlyGETOperationsCanBeSpecifiedInBatch() 102return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_OnlyGETOperationsCanBeSpecifiedInBatch)); 107internal static DataServiceException BatchStreamInvalidOperationHeaderSpecified() 109return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_InvalidOperationHeaderSpecified)); 115internal static DataServiceException BatchStreamInvalidHttpMethodName(string methodName) 117return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_InvalidHttpMethodName(methodName))); 122internal static DataServiceException BatchStreamMoreDataAfterEndOfBatch() 124return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_MoreDataAfterEndOfBatch)); 131return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_InternalBufferRequestTooSmall)); 139return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_InvalidMethodHeaderSpecified(header))); 148return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_InvalidHttpVersionSpecified(actualVersion, expectedVersion))); 157return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_InvalidNumberOfHeadersAtOperationStart(header1, header2))); 166return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_MissingOrInvalidContentEncodingHeader(headerName, headerValue))); 175return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_InvalidNumberOfHeadersAtChangeSetStart(header1, header2))); 183return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_MissingContentTypeHeader(headerName))); 194return Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_InvalidContentTypeSpecified(headerName, headerValue, mime1, mime2)));
System\Data\Services\ErrorHandler.cs (11)
179DataServiceException dataException = exception.InnerException as DataServiceException; 228DataServiceException dataServiceException = exception as DataServiceException; 273private static DataServiceException ExtractErrorValues(Exception exception, out string errorCode, out string message, out string messageLang) 275DataServiceException dataException = exception as DataServiceException; 398catch (DataServiceException) 410catch (DataServiceException) 429DataServiceException dataException = ExtractErrorValues(this.exceptionArgs.Exception, out errorCode, out message, out messageLang); 461DataServiceException dataException = ExtractErrorValues(this.exceptionArgs.Exception, out errorCode, out message, out messageLang);
System\Data\Services\HandleExceptionArgs.cs (4)
77if (this.exception is DataServiceException) 79return ((DataServiceException)this.exception).StatusCode; 110if (this.exception is DataServiceException) 112return ((DataServiceException)this.exception).ResponseAllowHeader;
System\Data\Services\HttpContextServiceHost.cs (9)
139throw DataServiceException.CreateBadRequestError(Strings.HttpContextServiceHost_XMethodNotUsingPost); 144throw DataServiceException.CreateBadRequestError(Strings.HttpContextServiceHost_XMethodIncorrectValue(result)); 149throw DataServiceException.CreateBadRequestError(Strings.HttpContextServiceHost_XMethodIncorrectCount(methodValues.Length)); 405throw DataServiceException.CreateBadRequestError(Strings.HttpContextServiceHost_AmbiguousItemName(item, keyFound, key)); 426throw DataServiceException.CreateSyntaxError(); 469throw DataServiceException.CreateBadRequestError( 481throw DataServiceException.CreateBadRequestError( 496throw DataServiceException.CreateBadRequestError( 503throw DataServiceException.CreateBadRequestError(
System\Data\Services\HttpProcessUtility.cs (1)
459private static DataServiceException CreateParsingException(string message)
System\Data\Services\Parsing\ExpressionLexer.cs (1)
405return DataServiceException.CreateSyntaxError(message);
System\Data\Services\Parsing\RequestQueryParser.cs (2)
1316return DataServiceException.CreateSyntaxError(message); 2061throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidPropertyNameSpecified(id, this.currentSegmentInfo.ResourceType.FullName));
System\Data\Services\Parsing\Token.cs (1)
99throw DataServiceException.CreateSyntaxError(Strings.RequestQueryParser_IdentifierExpected(this.Position));
System\Data\Services\Providers\BasicExpandProvider.cs (1)
1080throw DataServiceException.CreateBadRequestError(Strings.BasicExpandProvider_ExpandNotSupportedForOpenProperties);
System\Data\Services\Providers\DataServiceProviderWrapper.cs (1)
895throw DataServiceException.CreateBadRequestError(Strings.RequestQueryParser_OrderByDoesNotSupportType(resourceTypeName));
System\Data\Services\Providers\DataServiceStreamProviderWrapper.cs (1)
165catch (DataServiceException e)
System\Data\Services\Providers\IDataServiceStreamProvider.cs (4)
94/// <exception cref="DataServiceException">if a valid stream cannot be returned. Null should never be returned from this method.</exception> 150/// <exception cref="DataServiceException">if a valid stream cannot be returned. Null should never be returned from this method.</exception> 181/// <exception cref="DataServiceException">if the stream associated with the entity specified could not be deleted.</exception> 262/// <exception cref="DataServiceException">An entity type name cannot be resolved given the host parameter provided.</exception>
System\Data\Services\Providers\ObjectContextServiceProvider.cs (6)
354throw DataServiceException.CreateBadRequestError(Strings.CannotCreateInstancesOfAbstractType(resourceType.FullName)); 405throw DataServiceException.CreateBadRequestError(Strings.TargetElementTypeOfTheUriSpecifiedDoesNotMatchWithTheExpectedType(resourceType.FullName, fullTypeName)); 580throw DataServiceException.CreatePreConditionFailedError(Strings.Serializer_ETagValueDoesNotMatch, e); 638throw DataServiceException.CreateBadRequestError(Strings.DataService_CannotPerformOperationWithoutETag(resourceType.FullName)); 2019throw DataServiceException.CreateBadRequestError(Strings.ObjectContext_ExpandTooDeep); 2468throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ErrorInSettingPropertyValue(propertyName), exception);
System\Data\Services\Providers\ResourceType.cs (6)
782throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidPropertyNameSpecified(currentSegment, resourceType.FullName)); 796throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidTypeName(foundTypeName)); 801throw DataServiceException.CreateBadRequestError( 842throw DataServiceException.CreateBadRequestError( 951throw DataServiceException.CreateBadRequestError(Strings.BadRequest_PropertyValueCannotBeSet(resourceProperty.Name)); 965throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ErrorInSettingPropertyValue(resourceProperty.Name), exception);
System\Data\Services\RequestDescription.cs (2)
389throw DataServiceException.CreateResourceNotFound(segmentInfo.Identifier); 396throw DataServiceException.CreateSyntaxError(
System\Data\Services\RequestQueryProcessor.cs (23)
190throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_QueryNoOptionsApplicable); 391throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_QueryExpandOptionNotApplicable); 414throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(pathSegment)); 417throw DataServiceException.CreateSyntaxError(Strings.RequestUriProcessor_PropertyNotFound(resourceType.FullName, pathSegment)); 426throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidPropertyNameSpecified(property.Name, resourceType.FullName)); 555throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_QueryFilterOptionNotApplicable); 564throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_QuerySetOptionsNotApplicable); 619throw DataServiceException.CreateSyntaxError(Strings.RequestUriProcessor_PropertyNotFound(currentResourceType.FullName, pathSegment)); 625throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(pathSegment)); 635throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_PrimitivePropertyUsedAsNavigationProperty(currentResourceType.FullName, pathSegment)); 643throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_ComplexPropertyAsInnerSelectSegment(currentResourceType.FullName, pathSegment)); 664throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_ProjectedPropertyWithoutMatchingExpand(currentNode.PropertyName)); 700throw DataServiceException.CreateBadRequestError(Strings.DataServiceConfiguration_ProjectionsNotSupportedInV1Server); 721throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_QuerySelectOptionNotApplicable); 727throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_QuerySelectOptionNotApplicable); 733throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_QuerySelectOptionNotApplicable); 878throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_SkipTokenNotAllowed); 900throw DataServiceException.CreateBadRequestError(Strings.DataService_SDP_SkipTokenNotMatchingOrdering(k.PositionalValues.Count, skipToken, this.topLevelOrderingInfo.OrderingExpressions.Count)); 974throw DataServiceException.CreateBadRequestError(Strings.DataServiceConfiguration_CountNotSupportedInV1Server); 988throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_RequestVerbCannotCountError); 994throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_InlineCountWithValueCount); 1011throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_InvalidCountOptionError); 1369throw DataServiceException.CreateSyntaxError(
System\Data\Services\RequestUriProcessor.cs (26)
59/// <exception cref="DataServiceException"> 60/// A <see cref="DataServiceException" /> with status code 404 (Not Found) is returned if an identifier 77throw DataServiceException.CreateBadRequestError(Strings.RequestUriProcessor_TooManySegments); 144throw DataServiceException.CreateBadRequestError(Strings.DataServiceConfiguration_CountNotSupportedInV1Server); 257throw DataServiceException.CreateBadRequestError(message); 321throw DataServiceException.CreateBadRequestError(Strings.BadRequest_RequestUriDoesNotHaveTheRightBaseUri(absoluteRequestUri, baseUri)); 365throw DataServiceException.CreateSyntaxError(); 389throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_MustSpecifyCanonicalUriInPayload(absoluteRequestUri)); 447throw DataServiceException.CreateBadRequestError(Strings.RequestUriProcessor_KeysMustBeNamed); 490throw DataServiceException.CreateResourceNotFound(Strings.RequestUriProcessor_CountOnRoot); 501throw DataServiceException.CreateMethodNotAllowed(Strings.RequestUriProcessor_MethodNotAllowed, segment.Operation.Method); 682throw DataServiceException.ResourceNotFoundError(Strings.RequestUriProcessor_EmptySegmentInRequestUrl); 698throw DataServiceException.ResourceNotFoundError(Strings.RequestUriProcessor_MustBeLeafSegment(previous.Identifier)); 703throw DataServiceException.ResourceNotFoundError(Strings.RequestUriProcessor_CannotSpecifyAfterPostLinkSegment(identifier, XmlConstants.UriLinkSegment)); 711throw DataServiceException.ResourceNotFoundError(Strings.RequestUriProcessor_ValueSegmentAfterScalarPropertySegment(previous.Identifier, identifier)); 742throw DataServiceException.ResourceNotFoundError( 749throw DataServiceException.CreateBadRequestError( 776throw DataServiceException.CreateResourceNotFound(Strings.RequestUriProcessor_CountNotSupported(previous.Identifier)); 781throw DataServiceException.CreateResourceNotFound(Strings.RequestUriProcessor_CannotQuerySingletons(previous.Identifier, identifier)); 786throw DataServiceException.CreateBadRequestError(Strings.RequestQueryProcessor_RequestVerbCannotCountError); 833throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(segment.Identifier)); 874throw DataServiceException.CreateBadRequestError(Strings.RequestUriProcessor_LinkSegmentMustBeFollowedByEntitySegment(identifier, XmlConstants.UriLinkSegment)); 888throw DataServiceException.CreateResourceNotFound(segment.ProjectedProperty.Name); 907throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ResourceCanBeCrossReferencedOnlyForBindOperation); 936throw DataServiceException.CreateBadRequestError(Strings.RequestUriProcessor_MissingSegmentAfterLink(XmlConstants.UriLinkSegment)); 957throw DataServiceException.CreateBadRequestError(Strings.BadRequest_KeyCountMismatch(resourceType.FullName));
System\Data\Services\Serializers\Deserializer.cs (10)
295throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ErrorInConvertingPropertyValue(description.Property.Name, description.Property.Type), e); 334throw DataServiceException.CreateBadRequestError(Strings.BadRequest_CannotSetTopLevelResourceToNull(description.ResultUri.OriginalString)); 400throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ResourceCanBeCrossReferencedOnlyForBindOperation); 463throw DataServiceException.CreateBadRequestError(Strings.BadRequest_DereferencingNullPropertyValue(description.SegmentInfos[entityResourceIndex].Identifier)); 483throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(description.SegmentInfos[entityResourceIndex].Identifier)); 554throw DataServiceException.CreateResourceNotFound(segmentInfo.Identifier); 601throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidUriForMediaResource(service.OperationContext.AbsoluteRequestUri)); 606throw DataServiceException.CreateMethodNotAllowed( 835throw DataServiceException.CreateBadRequestError(Strings.BadRequest_CannotUpdateRelatedEntitiesInPut); 949throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ResourceCanBeCrossReferencedOnlyForBindOperation);
System\Data\Services\Serializers\JsonDeserializer.cs (26)
137throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ErrorInConvertingNumericValues(propertyName)); 147throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ErrorInConvertingNumericValues(propertyName)); 159throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ErrorInConvertingNumericValues(propertyName)); 167throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ErrorInConvertingPropertyValue(propertyName, propertyType.Name), e); 210throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidResourceEntity); 216throw DataServiceException.CreateBadRequestError(Strings.BadRequest_MissingUriForLinkOperation); 232throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ResourceSetPropertyMustBeArray); 280throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidResourceEntity); 304throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidUriMetadata); 336throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidResourceEntity); 371throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidResourceEntity); 399throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(segmentInfo.Identifier)); 416throw DataServiceException.CreateBadRequestError(Strings.BadRequest_DeepUpdateNotSupported); 420throw DataServiceException.CreateBadRequestError(Strings.BadRequest_UriMissingForUpdateForDeepUpdates); 494throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(segmentInfo.Identifier)); 544throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidPropertyNameSpecified(propertyName, parentResourceType.FullName)); 658throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(propertyName)); 665throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(propertyName)); 699throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidMetadataContent); 710throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidTypeMetadata); 717throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidTypeName(typeName)); 722throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidTypeSpecified(typeName, expectedType.FullName)); 745throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_MissingTypeInformationForOpenTypeProperties); 750throw DataServiceException.CreateBadRequestError(Strings.BadRequest_TypeInformationMustBeSpecifiedForInhertiance); 784throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidPropertyNameSpecified(resourceProperty.Name, parentResourceType.FullName)); 806throw DataServiceException.CreateBadRequestError(Strings.BadRequest_CannotSetCollectionsToNull(resourceProperty.Name));
System\Data\Services\Serializers\JsonReader.cs (14)
115throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidContent); 127throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidContent); 143throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidContent); 216throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidContent); 229throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_MissingArrayMemberSeperator); 262throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidKeyword(s)); 312throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_MissingMemberName); 316throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidKeyword(s)); 358throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidContent); 378throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidContent); 391throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_MissingMemberSeperator); 402throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidJsonNameSpecifiedOrExtraComma); 410throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_MissingNameValueSeperator(name)); 486throw DataServiceException.CreateBadRequestError(Strings.BadRequestStream_InvalidJsonUnrecognizedEscapeSequence);
System\Data\Services\Serializers\PlainXmlDeserializer.cs (14)
127throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ErrorInConvertingPropertyValue(propertyName, typeToBeConverted), e); 149throw DataServiceException.CreateBadRequestError(Strings.PlainXml_PayloadLacksElement); 172throw DataServiceException.CreateBadRequestError( 203throw DataServiceException.CreateBadRequestError(Strings.PlainXml_PayloadLacksElement); 226throw DataServiceException.CreateBadRequestError(Strings.BadRequest_MoreThanOneUriElementSpecified); 232throw DataServiceException.CreateBadRequestError(Strings.BadRequest_MissingUriForLinkOperation); 248throw DataServiceException.CreateBadRequestError(Strings.BadRequest_MissingUriForLinkOperation); 276throw DataServiceException.CreateBadRequestError( 354throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidValue(elementName)); 438throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidPropertyNameSpecified(propertyName, resourceType.FullName)); 483throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidTypeName(typeName)); 488throw DataServiceException.CreateBadRequestError( 557throw DataServiceException.CreateBadRequestError( 576throw DataServiceException.CreateBadRequestError(
System\Data\Services\Serializers\PlainXmlSerializer.cs (1)
340throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(propertyName));
System\Data\Services\Serializers\Serializer.cs (2)
464throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(propertyName)); 500throw DataServiceException.CreateBadRequestError(Strings.Serializer_ResultsExceedMax(max));
System\Data\Services\Serializers\SyndicationDeserializer.cs (23)
147throw DataServiceException.CreateBadRequestError(Strings.Syndication_ErrorReadingFeed(exception.Message), exception); 169throw DataServiceException.CreateBadRequestError(Strings.Syndication_ErrorReadingEntry(exception.Message), exception); 192throw DataServiceException.CreateBadRequestError(Strings.BadRequest_MimeTypeMustBeApplicationAtom(mime, XmlConstants.MimeApplicationAtom)); 205throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidTypeParameterSpecifiedInMimeType(typeParameterValue, XmlConstants.AtomEntryElementName)); 210throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidTypeParameterSpecifiedInMimeType(typeParameterValue, XmlConstants.AtomFeedElementName)); 248throw DataServiceException.CreateBadRequestError( 311throw DataServiceException.CreateBadRequestError(Strings.DataServiceException_GeneralError); 325throw DataServiceException.CreateBadRequestError(Strings.DataServiceException_GeneralError); 359throw DataServiceException.CreateBadRequestError(Strings.BadRequest_OnlyEntityTypesMustBeSpecifiedInEntryElement(currentResourceType.FullName)); 370throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(segmentInfo.Identifier)); 465throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(propertyName)); 470throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidNavigationPropertyName(propertyName, resourceType.FullName)); 488throw DataServiceException.CreateBadRequestError(Strings.BadRequest_CannotSetCollectionsToNull(propertyName)); 506throw DataServiceException.CreateBadRequestError(Strings.BadRequest_LinkHrefMustReferToSingleResource(propertyName)); 547throw DataServiceException.CreateBadRequestError(Strings.BadRequest_TypeInformationMustBeSpecifiedForInhertiance); 556throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidTypeName(typeName)); 600throw DataServiceException.CreateBadRequestError(Strings.BadRequest_DeepUpdateNotSupported); 614throw DataServiceException.CreateBadRequestError( 625throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidPropertyNameSpecified(propertyName, parentResourceType.FullName)); 636throw DataServiceException.CreateBadRequestError(Strings.Syndication_EntryElementForReferenceProperties(e.OuterName, propertyName)); 653throw DataServiceException.CreateBadRequestError(Strings.Syndication_FeedElementForCollections(e.OuterName, propertyName)); 670throw DataServiceException.CreateBadRequestError( 686throw DataServiceException.CreateBadRequestError(
System\Data\Services\Serializers\SyndicationSerializer.cs (2)
930throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(propertyName)); 1032throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(propertyName));
System\Data\Services\UpdatableWrapper.cs (10)
65throw DataServiceException.CreateMethodNotImplemented(Strings.UpdatableWrapper_MissingIUpdatableForV1Provider); 69throw DataServiceException.CreateMethodNotImplemented(Strings.UpdatableWrapper_MissingUpdateProviderInterface); 113throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidUriSpecified, e); 160throw DataServiceException.CreateBadRequestError(Strings.Serializer_NoETagPropertiesForType); 188throw DataServiceException.CreateBadRequestError(Strings.DataService_CannotPerformOperationWithoutETag(resourceType.FullName)); 198throw DataServiceException.CreatePreConditionFailedError(Strings.Serializer_ETagValueDoesNotMatch); 362catch (DataServiceException e) 372throw DataServiceException.CreatePreConditionFailedError(Strings.Serializer_ETagValueDoesNotMatch, innerException); 379throw DataServiceException.CreatePreConditionFailedError(Strings.Serializer_ETagValueDoesNotMatch); 414throw DataServiceException.CreatePreConditionFailedError(Strings.Serializer_ETagValueDoesNotMatch, innerException);
System\Data\Services\WebUtil.cs (14)
260throw DataServiceException.CreateResourceNotFound(identifier); 271throw DataServiceException.CreateSyntaxError(); 402throw DataServiceException.CreateDeepRecursion_General(); 415throw DataServiceException.CreateDeepRecursion(recursionLimit); 1065throw DataServiceException.CreatePreConditionFailedError(Strings.Serializer_ETagValueDoesNotMatch); 1077throw DataServiceException.CreateBadRequestError(Strings.Serializer_NoETagPropertiesForType); 1107throw DataServiceException.CreatePreConditionFailedError(Strings.Serializer_ETagValueDoesNotMatch); 1333throw DataServiceException.CreateBadRequestError(errorGenerator(wrapperParameters.Length - 1)); 1534throw DataServiceException.CreateBadRequestError( 1548throw DataServiceException.CreateBadRequestError(message); 1560throw DataServiceException.CreateBadRequestError(message); 1572throw DataServiceException.CreateBadRequestError( 1584throw DataServiceException.CreateBadRequestError(message); 1596throw DataServiceException.CreateBadRequestError(message);