YamlDotNet.Core : YamlDotNet.Core Namespace

SyntaxErrorException Class

Exception that is thrown when a syntax error is detected on a YAML stream.

public class SyntaxErrorException : YamlException

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326

Members

See Also: Inherited members from YamlException.

Public Constructors

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

Protected Constructors

Public Properties

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

Public Methods

override
GetObjectData (System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.

Member Details

SyntaxErrorException Constructor

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

public SyntaxErrorException ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326

SyntaxErrorException Constructor

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

public SyntaxErrorException (string message)

Parameters

message
The message.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326

SyntaxErrorException Constructor

Initializes a new instance of the YamlDotNet.Core.SyntaxErrorException 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 Reason
ArgumentNullException The info parameter is null.
System.Runtime.Serialization.SerializationException The class name is null or Exception.HResult is zero (0).

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326

SyntaxErrorException Constructor

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

public SyntaxErrorException (string message, Exception inner)

Parameters

message
The message.
inner
The inner.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326

SyntaxErrorException Constructor

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

public SyntaxErrorException (string description, Mark location)

Parameters

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

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326

GetObjectData Method

When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.

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 Reason
ArgumentNullException The info parameter is a null reference (Nothing in Visual Basic).

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326

Location Property

Gets the location where the exception has occured.

public Mark Location { get; }

Value

The location.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326