Table of Contents

Class TomlSerializerException

Namespace
RStein.TOML
Assembly
RStein.TOML.dll

Exception thrown when TOML parsing or serialization fails.

public class TomlSerializerException : Exception, ISerializable
Inheritance
TomlSerializerException
Implements
Inherited Members

Remarks

TomlSerializerException is raised for any errors encountered during TOML document parsing or serialization. The exception message describes the error. For errors found while parsing a TOML document, the message states the position, and Line and Column are set. For other errors they are null.

Constructors

TomlSerializerException()

Initializes a new instance of the TomlSerializerException.

public TomlSerializerException()

TomlSerializerException(string)

Initializes a new instance of the TomlSerializerException.

public TomlSerializerException(string message)

Parameters

message string

TomlSerializerException(string, Exception)

Initializes a new instance of the TomlSerializerException.

public TomlSerializerException(string message, Exception innerException)

Parameters

message string
innerException Exception

TomlSerializerException(string, int, int)

Initializes a new instance of the TomlSerializerException for an error found at a position in a TOML document.

public TomlSerializerException(string message, int line, int column)

Parameters

message string

The error message.

line int

The 1-based line number where the error was found.

column int

The 1-based column number where the error was found.

Properties

Column

Gets the 1-based column of the TOML document where the error was found, or null if the error is not related to a position in a document.

public int? Column { get; }

Property Value

int?

Line

Gets the 1-based line of the TOML document where the error was found, or null if the error is not related to a position in a document.

public int? Line { get; }

Property Value

int?