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