Skip to content

Commit

Permalink
Merge pull request #1 from DFE-Digital/CL/update-comments
Browse files Browse the repository at this point in the history
add exception info to documented SearchAsync method
  • Loading branch information
CathLass authored Aug 5, 2024
2 parents 679df09 + 9aec540 commit d2b2b8f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ public DefaultSearchByKeywordService(
/// <returns>
/// The response containing search results from an index.
/// </returns>
/// <exception cref="ArgumentException">
/// Thrown when the param <paramref name="searchKeyword"/> or the param <paramref name="searchIndex"/> are null or empty
/// </exception>
/// <exception cref="ArgumentNullException">
/// Thrown when the param <paramref name="searchOptions"/>is null
/// </exception>
/// <exception cref="RequestFailedException">
/// Thrown when a failure is returned by the Azure Search Service
/// </exception>
public Task<Response<SearchResults<TSearchResult>>> SearchAsync<TSearchResult>(
string searchKeyword, string searchIndex, SearchOptions searchOptions)
where TSearchResult : class
Expand Down

0 comments on commit d2b2b8f

Please sign in to comment.