YamlException Class

Base exception that is thrown when the a problem occurs in the Meziantou.Framework.Yaml library.

public class YamlException : Exception
Inheritance
Exception YamlException

Constructors

NameDescription
YamlException()Initializes a new instance of the YamlException class.
YamlException(Mark, Mark, string)Initializes a new instance of the YamlException class.
YamlException(Mark, Mark, string, Exception?)Initializes a new instance of the YamlException class.
YamlException(string)Initializes a new instance of the YamlException class.
YamlException(string?, Mark, Mark, string)Initializes a new instance of the YamlException class.
YamlException(string?, Mark, Mark, string, Exception?)Initializes a new instance of the YamlException class.
YamlException(string, Exception)Initializes a new instance of the YamlException class.

YamlException overloads

YamlException()

YamlException.cs

Initializes a new instance of the YamlException class.

public YamlException()

YamlException(Mark, Mark, string)

YamlException.cs

Initializes a new instance of the YamlException class.

public YamlException(Mark start, Mark end, string message)
Parameters
start Mark
end Mark
message string

YamlException(Mark, Mark, string, Exception?)

YamlException.cs

Initializes a new instance of the YamlException class.

public YamlException(Mark start, Mark end, string message, Exception? innerException)
Parameters
start Mark
end Mark
message string
innerException Exception?

YamlException(string)

YamlException.cs

Initializes a new instance of the YamlException class.

public YamlException(string message)
Parameters
message string
The message.

YamlException(string?, Mark, Mark, string)

YamlException.cs

Initializes a new instance of the YamlException class.

public YamlException(string? sourceName, Mark start, Mark end, string message)
Parameters
sourceName string?
start Mark
end Mark
message string

YamlException(string?, Mark, Mark, string, Exception?)

YamlException.cs

Initializes a new instance of the YamlException class.

public YamlException(string? sourceName, Mark start, Mark end, string message, Exception? innerException)
Parameters
sourceName string?
start Mark
end Mark
message string
innerException Exception?

YamlException(string, Exception)

YamlException.cs

Initializes a new instance of the YamlException class.

public YamlException(string message, Exception inner)
Parameters
message string
The message.
inner Exception
The inner.

Properties

NameDescription
EndGets the position in the input stream where the event that originated the exception ends.
SourceNameGets the optional source name associated with the YAML payload (for example, a file path).
StartGets the position in the input stream where the event that originated the exception starts.

Gets the position in the input stream where the event that originated the exception ends.

public Mark End { get; }

Property value

Mark

Gets the optional source name associated with the YAML payload (for example, a file path).

public string? SourceName { get; }

Property value

string?

Gets the position in the input stream where the event that originated the exception starts.

public Mark Start { get; }

Property value

Mark