| | | 1 | | // ----------------------------------------------------------------------- |
| | | 2 | | // <copyright file="HttpException.cs" company="Stéphane ANDRE"> |
| | | 3 | | // Copyright (c) Stéphane ANDRE. All rights reserved. |
| | | 4 | | // </copyright> |
| | | 5 | | // ----------------------------------------------------------------------- |
| | | 6 | | |
| | | 7 | | using System; |
| | | 8 | | |
| | | 9 | | namespace 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> |
| | | 14 | | public 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> |
| | 0 | 19 | | 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) |
| | 0 | 26 | | : 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) |
| | 0 | 34 | | : base(message, exception) { } |
| | | 35 | | } |
| | | 36 | | |