Table of Contents

Class ErrorMessageGenerator

Namespace
SunamoShared.Generators
Assembly
SunamoShared.dll

Generates user-facing error messages from a list of files and their associated exceptions, splitting output into visible and collapsed sections.

public class ErrorMessageGenerator
Inheritance
ErrorMessageGenerator
Inherited Members
Extension Methods

Constructors

ErrorMessageGenerator(List<string>, List<FileExceptions>, int)

Generates error messages from a list of erroneous files and their exceptions.

public ErrorMessageGenerator(List<string> errorFiles, List<FileExceptions> exceptions, int maxVisible)

Parameters

errorFiles List<string>

List of file names that had errors.

exceptions List<FileExceptions>

List of file exceptions corresponding to each file.

maxVisible int

Maximum number of errors to show in the visible section.

Properties

Collapse

Gets the collapsed portion of the error message.

public string Collapse { get; }

Property Value

string

Visible

Gets the visible portion of the error message.

public string Visible { get; }

Property Value

string