Class DefaultErrorMessageColors
Expose the default fatal and nonfatal exception message colors, which are defined in a standard application configuration file that is linked to the assembly that defines this class.
Inherited Members
Namespace: WizardWrx.ConsoleStreams
Assembly: WizardWrx.ConsoleStreams.dll
Syntax
public class DefaultErrorMessageColors : PropertyDefaults
Constructors
| Improve this Doc View SourceDefaultErrorMessageColors()
The default constructor deviates from the usual pattern by explicitly calling the base constructor overload that accepts a reference to the assembly that defines this class, with the objective of linking it to the application configuration file that is linked to this DLL.
Declaration
public DefaultErrorMessageColors()
DefaultErrorMessageColors(System.Reflection.Assembly)
The overloaded constructor adheres to the usual pattern by explicitly calling the base constructor with a reference to the DLL specified by the caller, with the objective of linking it to the application configuration file that is linked to aNonther DLL.
Declaration
public DefaultErrorMessageColors(System.Reflection.Assembly pasmLinkedAssembly)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.Assembly | pasmLinkedAssembly | Specify the assembly to which the desired configuration file is linked. |
Properties
| Improve this Doc View SourceFatalExceptionBackgroundColor
Get or set the default background color for rendering reports of fatal exceptions.
Declaration
public ConsoleColor FatalExceptionBackgroundColor { get; set; }
Property Value
| Type | Description |
|---|---|
| ConsoleColor |
FatalExceptionTextColor
Get or set the default text color for rendering reports of fatal exceptions.
Declaration
public ConsoleColor FatalExceptionTextColor { get; set; }
Property Value
| Type | Description |
|---|---|
| ConsoleColor |
PropsLeftAtDefault
Get the count of properties that were omitted from the linked configuration file. When this value is greater than zero, generic dictionary MissingConfigSettings, inherited from the AssemblyLocatorBase base class, contains one string for each such property.
Declaration
public int PropsLeftAtDefault { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
See Also
| Improve this Doc View SourcePropsSetFromConfig
Get the count of properties that were set from the linked configuration file.
Declaration
public int PropsSetFromConfig { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
RecoverableExceptionBackgroundColor
Get or set the default background color for rendering reports of recoverable exceptions.
Declaration
public ConsoleColor RecoverableExceptionBackgroundColor { get; set; }
Property Value
| Type | Description |
|---|---|
| ConsoleColor |
RecoverableExceptionTextColor
Get or set the default text color for rendering reports of recoverable exceptions.
Declaration
public ConsoleColor RecoverableExceptionTextColor { get; set; }
Property Value
| Type | Description |
|---|---|
| ConsoleColor |
Methods
| Improve this Doc View SourceToString()
Override the default ToString method on the base class (object) to show the key properties followed by the fully qualified class name.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | Return a string similar to the following. Template: {Fatal: Text = FatalExceptionTextColor, FatalExceptionBackgroundColor = BackgroundColor; Recoverable: Text = RecoverableExceptionTextColor, Background = RecoverableExceptionBackgroundColor} WizardWrx.ConsoleStreams.DefaultErrorMessageColors Template: {{WizardWrx.ConsoleStreams.DefaultErrorMessageColors (Fatal: Text (Foreground) = FatalExceptionTextColor, Background = FatalExceptionBackgroundColor; Recoverable: Text (Foreground) = RecoverableExceptionTextColor, Background = RecoverableExceptionBackgroundColor)}} |