42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
// ***********************************************************************
|
|
// <copyright file="HttpException.cs">
|
|
// AgileWebs
|
|
// </copyright>
|
|
// ***********************************************************************
|
|
|
|
namespace Core.Blueprint.Logging
|
|
{
|
|
/// <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)
|
|
{
|
|
ErrorCode = errorCode;
|
|
StatusCode = statusCode;
|
|
}
|
|
}
|
|
}
|