MermaidParseError Struct

An error of a Mermaid text, with its position.

public readonly struct MermaidParseError : IEquatable<MermaidParseError>
Implements

Constructors

NameDescription
MermaidParseError(string, int, int)An error of a Mermaid text, with its position.

MermaidParseError(string, int, int)

An error of a Mermaid text, with its position.

public MermaidParseError(string Message, int Line, int Column)

Parameters

Message string
The description of the error.
Line int
The line of the error, from 1.
Column int
The column of the error, from 1, in UTF-16 code units.

Properties

NameDescription
ColumnThe column of the error, from 1, in UTF-16 code units.
LineThe line of the error, from 1.
MessageThe description of the error.

The column of the error, from 1, in UTF-16 code units.

public int Column { get; init; }

Property value

int

The line of the error, from 1.

public int Line { get; init; }

Property value

int

The description of the error.

public string Message { get; init; }

Property value

string

Methods

NameDescription
Deconstruct(string, int, int)
Equals(MermaidParseError)
Equals(object)
GetHashCode()
ToString()Returns the error as (line, column): message.

Deconstruct(string, int, int)

public void Deconstruct(out string Message, out int Line, out int Column)

Parameters

Message string
Line int
Column int

No documentation is available.

Equals overloads

Equals(MermaidParseError)

public bool Equals(MermaidParseError other)
Parameters
other MermaidParseError
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

Returns the error as (line, column): message.

public override string ToString()

Returns

string The description of the error.

Operators

NameDescription
operator ==(MermaidParseError, MermaidParseError)
operator !=(MermaidParseError, MermaidParseError)

operator ==(MermaidParseError, MermaidParseError)

public static bool operator ==(MermaidParseError left, MermaidParseError right)

Parameters

left MermaidParseError
right MermaidParseError

Returns

bool

No documentation is available.

operator !=(MermaidParseError, MermaidParseError)

public static bool operator !=(MermaidParseError left, MermaidParseError right)

Parameters

left MermaidParseError
right MermaidParseError

Returns

bool

No documentation is available.