Table of Contents

Method GetErrorMessage

Namespace
AvroSharp.CodeGen
Assembly
AvroSharp.CodeGen.dll

GetErrorMessage(string)

Gets the error message of a file that could not be parsed. When the file defines again a type that another file defines differently, the message names that other file; when it uses a type that another file which could not be parsed defines, it names that file, and says whether the two files need each other's types.

public string GetErrorMessage(string path)

Parameters

path string

The file's path, as given to Parse(IEnumerable<(string Path, string Json)>, CancellationToken).

Returns

string

Exceptions

KeyNotFoundException

The file parsed, or is not in the set.