Class ParserEmbeddedCodeTransformationException
- Namespace
- Utils.Parser.Diagnostics.EmbeddedCode
- Assembly
- Utils.Parser.Diagnostics.dll
Exception thrown by the central embedded-code transformation service when transformation fails.
public class ParserEmbeddedCodeTransformationException : Exception, ISerializable
- Inheritance
-
ParserEmbeddedCodeTransformationException
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ParserEmbeddedCodeTransformationException(string, string?, string?, ParserEmbeddedCodeTransformationPath, ParserEmbeddedCodeLocation, string?, string?, SourceSpan?, Exception?)
Initializes a new transformation exception with structured diagnostic metadata.
public ParserEmbeddedCodeTransformationException(string message, string? diagnosticCode, string? diagnosticMessage, ParserEmbeddedCodeTransformationPath path, ParserEmbeddedCodeLocation location, string? grammarName, string? ruleName, SourceSpan? span, Exception? innerException = null)
Parameters
messagestringStable failure message.
diagnosticCodestringDiagnostic code when one is available.
diagnosticMessagestringDiagnostic message when one is available.
pathParserEmbeddedCodeTransformationPathTransformation path that requested the embedded-code transformation.
locationParserEmbeddedCodeLocationEmbedded-code location being transformed.
grammarNamestringOwning grammar name when available.
ruleNamestringOwning parser rule name when available.
spanSourceSpanSource span when available.
innerExceptionExceptionOriginal transformer exception when transformation failed by throwing.
Properties
DiagnosticCode
Gets the diagnostic code when one is available.
public string? DiagnosticCode { get; }
Property Value
DiagnosticMessage
Gets the diagnostic message when one is available.
public string? DiagnosticMessage { get; }
Property Value
GrammarName
Gets the owning grammar name when available.
public string? GrammarName { get; }
Property Value
Location
Gets the embedded-code location being transformed.
public ParserEmbeddedCodeLocation Location { get; }
Property Value
Path
Gets the transformation path that requested the embedded-code transformation.
public ParserEmbeddedCodeTransformationPath Path { get; }
Property Value
RuleName
Gets the owning rule name when available.
public string? RuleName { get; }
Property Value
Span
Gets the source span when available.
public SourceSpan? Span { get; }