62 references to InternalError
System.Data.Services.Client (62)
System\Data\Services\Client\AtomParser.cs (2)
483
Error.ThrowInternalError(
InternalError
.UnexpectedXmlNodeTypeWhenReading);
488
Error.ThrowInternalError(
InternalError
.UnexpectedXmlNodeTypeWhenReading);
System\Data\Services\Client\DataServiceContext.cs (43)
2382
throw Error.InternalError(
InternalError
.UnvalidatedEntityState);
2421
Error.ThrowBatchUnexpectedContent(
InternalError
.LinkNotAddedState);
2437
Error.ThrowBatchUnexpectedContent(
InternalError
.EntryNotModified);
2462
Error.ThrowBatchUnexpectedContent(
InternalError
.LinkBadState);
2888
Error.ThrowInternalError(
InternalError
.UnvalidatedEntityState);
3075
Error.ThrowBatchUnexpectedContent(
InternalError
.EntityNotDeleted);
3100
Error.ThrowBatchUnexpectedContent(
InternalError
.EntityNotAddedState);
4326
Error.ThrowInternalError(
InternalError
.InvalidBeginNextChange);
4469
private static void CompleteCheck(PerRequest value,
InternalError
errorcode)
4483
private static void EqualRefCheck(PerRequest actual, PerRequest expected,
InternalError
errorcode)
5308
Error.ThrowBatchExpectedResponse(
InternalError
.NullResponseStream);
5412
Error.ThrowBatchUnexpectedContent(
InternalError
.UnexpectedBeginChangeSet);
5649
Error.ThrowBatchExpectedResponse(
InternalError
.UnexpectedBatchState);
5684
Error.ThrowBatchUnexpectedContent(
InternalError
.ChangeResponseMissingContentID);
5695
Error.ThrowBatchUnexpectedContent(
InternalError
.ChangeResponseUnknownContentID);
5712
CompleteCheck(pereq,
InternalError
.InvalidEndGetRequestCompleted);
5715
EqualRefCheck(this.request, pereq,
InternalError
.InvalidEndGetRequestStream);
5716
HttpWebRequest httpWebRequest = Util.NullCheck(pereq.Request,
InternalError
.InvalidEndGetRequestStreamRequest);
5718
Stream stream = Util.NullCheck(httpWebRequest.EndGetRequestStream(asyncResult),
InternalError
.InvalidEndGetRequestStreamStream);
5722
Util.NullCheck(contentStream,
InternalError
.InvalidEndGetRequestStreamContent);
5723
Util.NullCheck(contentStream.Stream,
InternalError
.InvalidEndGetRequestStreamContent);
5732
Error.ThrowInternalError(
InternalError
.InvalidEndGetRequestStreamContentLength);
5781
CompleteCheck(pereq,
InternalError
.InvalidEndReadCompleted);
5784
EqualRefCheck(this.request, pereq,
InternalError
.InvalidEndRead);
5786
Util.NullCheck(contentStream,
InternalError
.InvalidEndReadStream);
5787
Util.NullCheck(contentStream.Stream,
InternalError
.InvalidEndReadStream);
5788
Stream stream = Util.NullCheck(pereq.RequestStream,
InternalError
.InvalidEndReadStream);
5834
HttpWebRequest httpWebRequest = Util.NullCheck(pereq.Request,
InternalError
.InvalidEndWriteRequest);
5861
CompleteCheck(pereq,
InternalError
.InvalidEndWriteCompleted);
5864
EqualRefCheck(this.request, pereq,
InternalError
.InvalidEndWrite);
5867
Util.NullCheck(contentStream,
InternalError
.InvalidEndWriteStream);
5868
Util.NullCheck(contentStream.Stream,
InternalError
.InvalidEndWriteStream);
5869
Stream stream = Util.NullCheck(pereq.RequestStream,
InternalError
.InvalidEndWriteStream);
5908
CompleteCheck(pereq,
InternalError
.InvalidEndGetResponseCompleted);
5911
EqualRefCheck(this.request, pereq,
InternalError
.InvalidEndGetResponse);
5912
HttpWebRequest httpWebRequest = Util.NullCheck(pereq.Request,
InternalError
.InvalidEndGetResponseRequest);
5930
pereq.HttpWebResponse = Util.NullCheck(response,
InternalError
.InvalidEndGetResponseResponse);
5995
CompleteCheck(pereq,
InternalError
.InvalidEndReadCompleted);
5998
EqualRefCheck(this.request, pereq,
InternalError
.InvalidEndRead);
5999
Stream stream = Util.NullCheck(pereq.ResponseStream,
InternalError
.InvalidEndReadStream);
6005
Stream outputResponse = Util.NullCheck(this.httpWebResponseStream,
InternalError
.InvalidEndReadCopy);
6051
Error.ThrowInternalError(
InternalError
.SaveNextChangeIncomplete);
6054
EqualRefCheck(this.request, pereq,
InternalError
.InvalidSaveNextChange);
System\Data\Services\Client\Error.cs (4)
196
internal static void ThrowBatchUnexpectedContent(
InternalError
value)
203
internal static void ThrowBatchExpectedResponse(
InternalError
value)
274
internal static InvalidOperationException InternalError(
InternalError
value)
281
internal static void ThrowInternalError(
InternalError
value)
System\Data\Services\Client\GetReadStreamResult.cs (1)
176
HttpWebRequest request = Util.NullCheck(state.request,
InternalError
.InvalidEndGetResponseRequest);
System\Data\Services\Client\QueryResult.cs (11)
231
this.SetHttpWebResponse(Util.NullCheck(response,
InternalError
.InvalidGetResponse));
547
CompleteCheck(state,
InternalError
.InvalidEndGetResponseCompleted);
550
HttpWebRequest httpWebRequest = Util.NullCheck(state.Request,
InternalError
.InvalidEndGetResponseRequest);
567
state.SetHttpWebResponse(Util.NullCheck(response,
InternalError
.InvalidEndGetResponseResponse));
581
state.responseStream = Util.NullCheck(state.GetAsyncResponseStreamCopy(),
InternalError
.InvalidAsyncResponseStreamCopy);
586
state.asyncStreamCopyBuffer = Util.NullCheck(state.GetAsyncResponseStreamCopyBuffer(),
InternalError
.InvalidAsyncResponseStreamCopyBuffer);
655
CompleteCheck(state,
InternalError
.InvalidEndReadCompleted);
658
Stream stream = Util.NullCheck(state.asyncResponseStream,
InternalError
.InvalidEndReadStream);
659
Stream outputResponse = Util.NullCheck(state.responseStream,
InternalError
.InvalidEndReadCopy);
660
byte[] buffer = Util.NullCheck(state.asyncStreamCopyBuffer,
InternalError
.InvalidEndReadBuffer);
717
private static void CompleteCheck(QueryResult pereq,
InternalError
errorcode)
System\Data\Services\Client\Util.cs (1)
383
internal static T NullCheck<T>(T value,
InternalError
errorcode) where T : class