BuildDiagnostic Pennington.Generation
Single diagnostic entry captured during a static build.
Properties
ExceptionSystem.Exception?- Default:
nullOptional exception captured with the diagnostic. Messagestring- Human-readable message.
RoutePennington.Routing.ContentRoute?- Default:
nullRoute the diagnostic relates to, if any. SeverityPennington.Diagnostics.DiagnosticSeverity- Severity level of the diagnostic.
SourceFilestring?- Default:
nullOptional source file path associated with the diagnostic.
Constructors
.ctor
#public record BuildDiagnostic(
DiagnosticSeverity Severity,
ContentRoute? Route,
string Message,
Exception? Exception = null,
string? SourceFile = null);Single diagnostic entry captured during a static build.
Parameters
SeverityDiagnosticSeverity- Severity level of the diagnostic.
RouteContentRoute?- Route the diagnostic relates to, if any.
Messagestring- Human-readable message.
ExceptionException? (optional)- Optional exception captured with the diagnostic.
SourceFilestring? (optional)- Optional source file path associated with the diagnostic.
Pennington.Generation.BuildDiagnostic
namespace Pennington.Generation;
/// Single diagnostic entry captured during a static build.
public record BuildDiagnostic
{
/// Single diagnostic entry captured during a static build.
public record BuildDiagnostic(
DiagnosticSeverity Severity,
ContentRoute? Route,
string Message,
Exception? Exception = null,
string? SourceFile = null);
/// Optional exception captured with the diagnostic.
Exception? Exception = null
;
/// Human-readable message.
string Message
;
/// Route the diagnostic relates to, if any.
ContentRoute? Route
;
/// Severity level of the diagnostic.
DiagnosticSeverity Severity
;
/// Optional source file path associated with the diagnostic.
string? SourceFile = null
;
}