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
messagestringThe error message.
TouchstoneParserException(string, int)
Initializes a new instance of the TouchstoneParserException class with a line number.
public TouchstoneParserException(string message, int lineNumber)
Parameters
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
messagestringThe error message.
lineNumberintThe 1-based line number where the error occurred.
innerExceptionExceptionThe inner exception.
Properties
LineNumber
Gets the line number (1-based) where the parsing error occurred, if known.
public int? LineNumber { get; }
Property Value
- int?