• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

loresoft / FluentRest / 11929962690

20 Nov 2024 08:57AM UTC coverage: 58.107%. Remained the same
11929962690

Pull #206

github

web-flow
Merge 7d96b20ca into dd4bfca3f
Pull Request #206: Bump Microsoft.NET.Test.Sdk from 17.11.1 to 17.12.0

264 of 594 branches covered (44.44%)

Branch coverage included in aggregate %.

829 of 1287 relevant lines covered (64.41%)

48.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/FluentRest/ProblemException.cs
1
namespace FluentRest;
2

3
/// <summary>
4
/// A base class for exceptions thrown based on problem detail respose
5
/// </summary>
6
public class ProblemException : HttpRequestException
7
{
8
    /// <summary>
9
    /// Initializes a new instance of the ProblemException class.
10
    /// </summary>
11
    /// <param name="problemDetails">The proble detail information</param>
12
    /// <exception cref="ArgumentNullException">when <paramref name="problemDetails"/> is null</exception>
13
    public ProblemException(ProblemDetails problemDetails) : base(problemDetails.Title)
×
14
    {
15
        ProblemDetails = problemDetails ?? throw new ArgumentNullException(nameof(problemDetails));
×
16
    }
×
17

18

19
    /// <summary>
20
    /// Initializes a new instance of the ProblemException class.
21
    /// </summary>
22
    /// <param name="problemDetails">The proble detail information</param>
23
    /// <param name="innerException">The inner exception</param>
24
    /// <exception cref="ArgumentNullException">when <paramref name="problemDetails"/> is null</exception>
25
    public ProblemException(ProblemDetails problemDetails, Exception innerException) : base(problemDetails.Title, innerException)
×
26
    {
27
        ProblemDetails = problemDetails ?? throw new ArgumentNullException(nameof(problemDetails));
×
28
    }
×
29

30
    /// <summary>
31
    /// Gets the problem details for this execption
32
    /// </summary>
33
    public ProblemDetails ProblemDetails { get; }
×
34
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc