YamlDotNet.Core : YamlDotNet.Core Namespace

ParserException Class

Exception that is thrown when the YAML parser encounters a problem.

public class ParserException : Exception


Remarks

To be added.

Members

See Also: Inherited members from Exception.

Constructors

Initializes a new instance of the YamlDotNet.Core.ParserException class.
Initializes a new instance of the YamlDotNet.Core.ParserException class.
Initializes a new instance of the YamlDotNet.Core.ParserException class.
Initializes a new instance of the YamlDotNet.Core.ParserException class.

Protected Constructors

Properties

Location [read-only]
Mark . Gets the location where the exception has occured.

Member Details

ParserException Constructor

public ParserException ()

Initializes a new instance of the YamlDotNet.Core.ParserException class.

Remarks

To be added.

ParserException Constructor

public ParserException (string message)

Initializes a new instance of the YamlDotNet.Core.ParserException class.

Parameters

message
The message.

Remarks

To be added.

ParserException Constructor

Initializes a new instance of the YamlDotNet.Core.ParserException class.

Parameters

info
The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
context
The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.

Exceptions

Type Condition
ArgumentNullException The info parameter is null.
System.Runtime.Serialization.SerializationException The class name is null or Exception.HResult is zero (0).

Remarks

To be added.

ParserException Constructor

public ParserException (string message, Exception inner)

Initializes a new instance of the YamlDotNet.Core.ParserException class.

Parameters

message
The message.
inner
The inner.

Remarks

To be added.

ParserException Constructor

public ParserException (string description, Mark location)

Initializes a new instance of the YamlDotNet.Core.ParserException class.

Parameters

description
The description.
location
The location where the exception occured.

Remarks

To be added.

Location Property

public Mark Location { get; }

Gets the location where the exception has occured.

Value

The location.

Remarks

To be added.