< Summary

Information
Class: MyNet.Http.Exceptions.HttpException
Assembly: MyNet.Http
File(s): https://raw.githubusercontent.com/sandre58/MyNet/5aaaab311aa14541478b9e402357d98b657a23e4/src/MyNet.Http/Exceptions/HttpException.cs
Tag: 342_31701152804
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 36
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%210%
.ctor(...)100%210%
.ctor(...)100%210%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/5aaaab311aa14541478b9e402357d98b657a23e4/src/MyNet.Http/Exceptions/HttpException.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="HttpException.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System;
 8
 9namespace MyNet.Http.Exceptions;
 10
 11/// <summary>
 12/// Represents errors that occur during HTTP operations. This exception can be thrown when an HTTP request fails due to 
 13/// </summary>
 14public class HttpException : Exception
 15{
 16    /// <summary>
 17    /// Initializes a new instance of the <see cref="HttpException"/> class with no parameters. This constructor allows 
 18    /// </summary>
 019    public HttpException() { }
 20
 21    /// <summary>
 22    /// Initializes a new instance of the <see cref="HttpException"/> class with a specified error message. This constru
 23    /// </summary>
 24    /// <param name="message">The error message that explains the reason for the exception.</param>
 25    public HttpException(string message)
 026        : base(message) { }
 27
 28    /// <summary>
 29    /// Initializes a new instance of the <see cref="HttpException"/> class with a specified error message and a referen
 30    /// </summary>
 31    /// <param name="message">The error message that explains the reason for the exception.</param>
 32    /// <param name="exception">The inner exception that is the cause of this exception.</param>
 33    public HttpException(string message, Exception? exception)
 034        : base(message, exception) { }
 35}
 36