BuildDiagnostic
Pennington.Generation
Single diagnostic entry captured during a static build.
Properties
ExceptionException- Optional exception captured with the diagnostic.
Messagestring- Human-readable message.
RouteContentRoute- Route the diagnostic relates to, if any.
SeverityDiagnosticSeverity- Severity level of the diagnostic.
SourceFilestring- 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
SeverityDiagnosticSeverity- Severity level of the diagnostic.
RouteContentRoute- Route the diagnostic relates to, if any.
Messagestring- Human-readable message.
ExceptionException- Optional exception captured with the diagnostic.
SourceFilestring- 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; }
}