Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: ConsoleColoredString GenerateErrorText(Translation, int?)

Declaration

public ConsoleColoredString GenerateErrorText(
    Translation tr,
    int? wrapWidth = null
)

Summary

Generates a printable description of the error represented by this exception, typically used to tell the user what they did wrong.

Parameters

Translationtr The translation class containing the translated text, or null for English.
int?wrapWidth The character width at which the output should be word-wrapped. The default (null) uses ConsoleUtil.WrapToWidth().