MermaidParseException Class

The exception thrown when a Mermaid text is not valid.

public sealed class MermaidParseException : Exception
Inheritance
Exception MermaidParseException

Constructors

NameDescription
MermaidParseException()Initializes a new instance of the MermaidParseException class.
MermaidParseException(MermaidParseError)Initializes a new instance of the MermaidParseException class.
MermaidParseException(string)Initializes a new instance of the MermaidParseException class.
MermaidParseException(string, Exception?)Initializes a new instance of the MermaidParseException class.

MermaidParseException overloads

MermaidParseException()

MermaidParseException.cs

Initializes a new instance of the MermaidParseException class.

public MermaidParseException()

MermaidParseException(MermaidParseError)

MermaidParseException.cs

Initializes a new instance of the MermaidParseException class.

public MermaidParseException(MermaidParseError error)
Parameters
error MermaidParseError
The error.

MermaidParseException(string)

MermaidParseException.cs

Initializes a new instance of the MermaidParseException class.

public MermaidParseException(string message)
Parameters
message string
The description of the error.

MermaidParseException(string, Exception?)

MermaidParseException.cs

Initializes a new instance of the MermaidParseException class.

public MermaidParseException(string message, Exception? innerException)
Parameters
message string
The description of the error.
innerException Exception?
The exception that caused this one.

Properties

NameDescription
ErrorGets the error, with its position.

Gets the error, with its position.

public MermaidParseError Error { get; }

Property value

MermaidParseError