internal static InvalidOperationException BatchStreamContentUnexpected(BatchStreamState state) { return(InvalidOperation(Strings.BatchStream_ContentUnexpected(state.ToString()))); }
/// <summary>create exception when unexpected content is discovered</summary> /// <param name="state">http method operation</param> /// <returns>exception to throw</returns> internal static DataServiceException BatchStreamContentUnexpected(BatchStreamState state) { return(Trace(DataServiceException.CreateBadRequestError(Strings.BatchStream_ContentUnexpected(state.ToString())))); }