24 lines
649 B
C#
24 lines
649 B
C#
namespace ASPNET.BackEnd.Common.Models;
|
|
|
|
public class Error
|
|
{
|
|
public Error(
|
|
string? innerException,
|
|
string? source,
|
|
string? stackTrace,
|
|
string? exceptionType)
|
|
{
|
|
Ref = "https://datatracker.ietf.org/doc/html/rfc9110";
|
|
InnerException = innerException;
|
|
Source = source?.Trim();
|
|
StackTrace = stackTrace?.Trim();
|
|
ExceptionType = exceptionType;
|
|
}
|
|
public string Ref { get; set; }
|
|
public string? ExceptionType { get; init; }
|
|
public string? InnerException { get; init; }
|
|
public string? Source { get; init; }
|
|
public string? StackTrace { get; init; }
|
|
}
|
|
|