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
errorFilesList<string>List of file names that had errors.
exceptionsList<FileExceptions>List of file exceptions corresponding to each file.
maxVisibleintMaximum 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
Visible
Gets the visible portion of the error message.
public string Visible { get; }