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

loresoft / FluentRest / 7318593291

25 Dec 2023 02:55AM UTC coverage: 52.206%. Remained the same
7318593291

Pull #158

github

web-flow
Merge 38e3e6116 into 7b58509ff
Pull Request #158: Bump xunit.runner.visualstudio from 2.5.4 to 2.5.6

182 of 438 branches covered (0.0%)

Branch coverage included in aggregate %.

516 of 899 relevant lines covered (57.4%)

86.76 hits per line

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

0.0
/src/FluentRest/ProblemException.cs
1
using System;
2
using System.Net.Http;
3
using System.Text.Json;
4
using System.Text.Json.Serialization;
5

6
namespace FluentRest;
7

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

23

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

35
    /// <summary>
36
    /// Gets the problem details for this execption
37
    /// </summary>
38
    public ProblemDetails ProblemDetails { get; }
39
}
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