/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Shared/StackTrace/ExceptionDetails/ExceptionDetails.cs
42 строки
1 KB
Brennan
Add rule to seal internal and private types (#41457)
05 май 2022, 19:26
Не верифицирован
05 май 2022, 19:26
3ea008c
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; #nullable enable namespace Microsoft.Extensions.StackTrace.Sources; /// <summary> /// Contains details for individual exception messages. /// </summary> internal sealed class ExceptionDetails { public ExceptionDetails(Exception error, IEnumerable<StackFrameSourceCodeInfo> stackFrames) { Error = error; StackFrames = stackFrames; } public ExceptionDetails(string errorMessage, IEnumerable<StackFrameSourceCodeInfo> stackFrames) { ErrorMessage = errorMessage; StackFrames = stackFrames; } /// <summary> /// An individual exception /// </summary> public Exception? Error { get; } /// <summary> /// The generated stack frames /// </summary> public IEnumerable<StackFrameSourceCodeInfo> StackFrames { get; } /// <summary> /// Gets or sets the summary message. /// </summary> public string? ErrorMessage { get; set; } }