This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

BuildDiagnostic Pennington.Generation

Single diagnostic entry captured during a static build.

Properties

Exception Exception
Optional exception captured with the diagnostic.
Message string
Human-readable message.
Route ContentRoute
Route the diagnostic relates to, if any.
Severity DiagnosticSeverity
Severity level of the diagnostic.
SourceFile string
Optional source file path associated with the diagnostic.

Constructors

BuildDiagnostic

#
public BuildDiagnostic(DiagnosticSeverity Severity, ContentRoute Route, string Message, Exception Exception = null, string SourceFile = null)

Single diagnostic entry captured during a static build.

Parameters

Severity DiagnosticSeverity
Severity level of the diagnostic.
Route ContentRoute
Route the diagnostic relates to, if any.
Message string
Human-readable message.
Exception Exception
Optional exception captured with the diagnostic.
SourceFile string
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 BuildDiagnostic(DiagnosticSeverity Severity, ContentRoute Route, string Message, Exception Exception = null, string SourceFile = null)
; /// Optional exception captured with the diagnostic.
public Exception Exception { get; set; }
/// Human-readable message.
public string Message { get; set; }
/// Route the diagnostic relates to, if any.
public ContentRoute Route { get; set; }
/// Severity level of the diagnostic.
public DiagnosticSeverity Severity { get; set; }
/// Optional source file path associated with the diagnostic.
public string SourceFile { get; set; }
}