Skip to content

Commit

Permalink
[Storage][Files] OpenRead - mention exception thrown for other failur…
Browse files Browse the repository at this point in the history
…es (#25866)
  • Loading branch information
PramodValavala-MSFT authored Dec 12, 2021
1 parent 3555c0a commit cd3ceed
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sdk/storage/Azure.Storage.Files.Shares/src/ShareFileClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2124,6 +2124,8 @@ private async Task<Response<ShareFileDownloadInfo>> DownloadInternal(
/// <remarks>
/// The stream returned might throw <see cref="ShareFileModifiedException"/>
/// if the file is concurrently modified and <see cref="ShareFileOpenReadOptions"/> don't allow modification.
///
/// A <see cref="RequestFailedException" /> will be thrown if other failures occur.
/// </remarks>
#pragma warning disable AZC0015 // Unexpected client method return type.
public virtual Stream OpenRead(
Expand Down Expand Up @@ -2157,6 +2159,8 @@ public virtual Stream OpenRead(
/// <remarks>
/// The stream returned might throw <see cref="ShareFileModifiedException"/>
/// if the file is concurrently modified and <see cref="ShareFileOpenReadOptions"/> don't allow modification.
///
/// A <see cref="RequestFailedException" /> will be thrown if other failures occur.
/// </remarks>
#pragma warning disable AZC0015 // Unexpected client method return type.
public virtual async Task<Stream> OpenReadAsync(
Expand Down Expand Up @@ -2199,6 +2203,8 @@ public virtual async Task<Stream> OpenReadAsync(
/// <remarks>
/// The stream returned might throw <see cref="ShareFileModifiedException"/>
/// if the file is concurrently modified.
///
/// A <see cref="RequestFailedException" /> will be thrown if other failures occur.
/// </remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
#pragma warning disable AZC0015 // Unexpected client method return type.
Expand Down Expand Up @@ -2243,6 +2249,8 @@ public virtual Stream OpenRead(
/// <remarks>
/// The stream returned might throw <see cref="ShareFileModifiedException"/>
/// if the file is concurrently modified.
///
/// A <see cref="RequestFailedException" /> will be thrown if other failures occur.
/// </remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
#pragma warning disable AZC0015 // Unexpected client method return type.
Expand Down Expand Up @@ -2285,6 +2293,8 @@ public virtual Stream OpenRead(
/// <remarks>
/// The stream returned might throw <see cref="ShareFileModifiedException"/>
/// if the file is concurrently modified.
///
/// A <see cref="RequestFailedException" /> will be thrown if other failures occur.
/// </remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
#pragma warning disable AZC0015 // Unexpected client method return type.
Expand Down Expand Up @@ -2329,6 +2339,8 @@ public virtual async Task<Stream> OpenReadAsync(
/// <remarks>
/// The stream returned might throw <see cref="ShareFileModifiedException"/>
/// if the file is concurrently modified.
///
/// A <see cref="RequestFailedException" /> will be thrown if other failures occur.
/// </remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
#pragma warning disable AZC0015 // Unexpected client method return type.
Expand Down Expand Up @@ -2380,6 +2392,8 @@ public virtual async Task<Stream> OpenReadAsync(
/// <remarks>
/// The stream returned might throw <see cref="ShareFileModifiedException"/>
/// if the file is concurrently modified and allowModifications is false.
///
/// A <see cref="RequestFailedException" /> will be thrown if other failures occur.
/// </remarks>
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
internal async Task<Stream> OpenReadInteral(
Expand Down

0 comments on commit cd3ceed

Please sign in to comment.