Table of Contents

Class TouchstoneParserException

Namespace
Touchstone.Parser.Parsing
Assembly
Touchstone.Parser.dll

Exception thrown when a Touchstone file cannot be parsed. Includes the line number where the error occurred, when available.

public sealed class TouchstoneParserException : Exception, ISerializable
Inheritance
TouchstoneParserException
Implements
Inherited Members

Constructors

TouchstoneParserException(string)

Initializes a new instance of the TouchstoneParserException class.

public TouchstoneParserException(string message)

Parameters

message string

The error message.

TouchstoneParserException(string, int)

Initializes a new instance of the TouchstoneParserException class with a line number.

public TouchstoneParserException(string message, int lineNumber)

Parameters

message string

The error message.

lineNumber int

The 1-based line number where the error occurred.

TouchstoneParserException(string, int, Exception)

Initializes a new instance of the TouchstoneParserException class with a line number and inner exception.

public TouchstoneParserException(string message, int lineNumber, Exception innerException)

Parameters

message string

The error message.

lineNumber int

The 1-based line number where the error occurred.

innerException Exception

The inner exception.

Properties

LineNumber

Gets the line number (1-based) where the parsing error occurred, if known.

public int? LineNumber { get; }

Property Value

int?