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