Add project files.
This commit is contained in:
		| @@ -0,0 +1,41 @@ | ||||
| // *********************************************************************** | ||||
| // <copyright file="HttpException.cs"> | ||||
| //     Heath | ||||
| // </copyright> | ||||
| // *********************************************************************** | ||||
|  | ||||
| namespace Lib.Common.LoggingAPI.Service.Extensions | ||||
| { | ||||
|     /// <summary> | ||||
|     /// The service HTTP exception. | ||||
|     /// Extends the <see cref="Exception"/> class. | ||||
|     /// </summary> | ||||
|     public class HttpException : Exception | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Gets or sets the exception error code. | ||||
|         /// </summary> | ||||
|         public string? ErrorCode { get; set; } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets or sets the exception status code. | ||||
|         /// </summary> | ||||
|         public int StatusCode { get; set; } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Creates a new instance of <see cref="HttpException"/>. | ||||
|         /// </summary> | ||||
|         /// <param name="statusCode">The exception status code.</param> | ||||
|         /// <param name="errorCode">The exception error code.</param> | ||||
|         /// <param name="message">The exception message.</param> | ||||
|         public HttpException( | ||||
|             int statusCode, | ||||
|             string errorCode, | ||||
|             string message) | ||||
|             : base(message) | ||||
|         { | ||||
|             this.ErrorCode = errorCode; | ||||
|             this.StatusCode = statusCode; | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Sergio Matias Urquin
					Sergio Matias Urquin