Skip to content

Commit

Permalink
Added constructor overload to the "HttpException" class
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Jan 27, 2024
1 parent 0e08e6f commit ad19505
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Skybrud.Essentials.Http/Exceptions/HttpException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ public HttpException(IHttpResponse response) : base($"Invalid response received
Response = response;
}

/// <summary>
/// Initializes a new exception based on the specified <paramref name="response"/> and <paramref name="message"/>.
/// </summary>
/// <param name="response">The instance of <see cref="IHttpResponse"/> representing the raw response.</param>
/// <param name="message">The message for the exception.</param>
public HttpException(IHttpResponse response, string message) : base(message) {
Response = response;
}

#endregion

}

0 comments on commit ad19505

Please sign in to comment.