# MermaidDiagnostic

Describes a Mermaid parser diagnostic. Review signatures, members, parameters, type relationships, and available reference details in ChartForgeX API reference.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidDiagnostic.cs:8](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDiagnostic.cs#L8)

**Modifiers**

sealed

Describes a Mermaid parser diagnostic.

## Inheritance

- object
- MermaidDiagnostic

## Usage

 Explore 2 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Property [MermaidParseResult<T>.Diagnostics](/api/chartforgex-mermaid-mermaidparseresult/#property-diagnostics)
- Property [MermaidRenderResult.Diagnostics](/api/chartforgex-mermaid-mermaidrenderresult/#property-diagnostics)

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidDiagnostic()` [#](#constructor-ctor) 

[MermaidDiagnostic.cs:8](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDiagnostic.cs#L8)

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public string Code { get; set; }` [#](#property-code) 

[MermaidDiagnostic.cs:8](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDiagnostic.cs#L8)

Gets or sets the stable diagnostic identifier. Library-produced diagnostics use [MermaidDiagnosticCodes](/api/chartforgex-mermaid-mermaiddiagnosticcodes/); caller-created diagnostics may leave it empty.

 `public VisualDiagnosticSeverity Severity { get; set; }` [#](#property-severity) 

[MermaidDiagnostic.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDiagnostic.cs#L11)

Gets or sets diagnostic severity.

 `public MermaidSourceSpan Span { get; set; }` [#](#property-span) 

[MermaidDiagnostic.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDiagnostic.cs#L14)

Gets or sets the source span associated with the diagnostic.

 `public string Message { get; set; }` [#](#property-message) 

[MermaidDiagnostic.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDiagnostic.cs#L17)

Gets or sets the diagnostic message.

<!-- PowerForge markdown artifact sha256:2BC82B9B1DFFFA3CD5EDA20BA9D3439475E184A16D868D8F5B5F70EDB833C3E1 -->
