This site provides a machine-readable index at /llms.txt.

Skip to main content Skip to navigation

BuildDiagnostic Pennington.Generation

Single diagnostic entry captured during a static build.

Properties

Exception System.Exception?
Default: null
Optional exception captured with the diagnostic.
Message string
Human-readable message.
Route Pennington.Routing.ContentRoute?
Default: null
Route the diagnostic relates to, if any.
Severity Pennington.Diagnostics.DiagnosticSeverity
Severity level of the diagnostic.
SourceFile string?
Default: null
Optional 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

Severity DiagnosticSeverity
Severity level of the diagnostic.
Route ContentRoute?
Route the diagnostic relates to, if any.
Message string
Human-readable message.
Exception Exception? (optional)
Optional exception captured with the diagnostic.
SourceFile string? (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
; }