Skip to content
ConsoleMonster
Class

ExceptionViewFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of ExceptionView, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • ExceptionViewFluent

Methods

public static ExceptionView BasePath(ExceptionView exceptionView, string? value) #

Sets ExceptionView.BasePath: The folder paths are shown relative to (default the current directory).

Parameters

exceptionView ConsoleMonster.Widgets.ExceptionView required
The instance.
value string? required
The value.

Returns

ExceptionView The same instance.

Examples

// C# initializer or property      // C# fluent
exceptionView.BasePath = value;    exceptionView.BasePath(value);
public static ExceptionView Compact(ExceptionView exceptionView, bool value = true) #

Sets ExceptionView.Compact: Uses a message-first layout with the invocation line and a folded inner-exception count.

Parameters

exceptionView ConsoleMonster.Widgets.ExceptionView required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ExceptionView The same instance.

Examples

// C# initializer or property     // C# fluent
exceptionView.Compact = value;    exceptionView.Compact(value);
public static ExceptionView DetailsHint(ExceptionView exceptionView, string? value) #

Sets ExceptionView.DetailsHint: A muted next-step hint, or null for no hint.

Parameters

exceptionView ConsoleMonster.Widgets.ExceptionView required
The instance.
value string? required
The value.

Returns

ExceptionView The same instance.

Examples

// C# initializer or property         // C# fluent
exceptionView.DetailsHint = value;    exceptionView.DetailsHint(value);
public static ExceptionView MaxFrames(ExceptionView exceptionView, int value) #

Sets ExceptionView.MaxFrames: The most app frames shown per error (default 8); the rest are counted.

Parameters

exceptionView ConsoleMonster.Widgets.ExceptionView required
The instance.
value int required
The value.

Returns

ExceptionView The same instance.

Examples

// C# initializer or property       // C# fluent
exceptionView.MaxFrames = value;    exceptionView.MaxFrames(value);
public static ExceptionView MaxInner(ExceptionView exceptionView, int value) #

Sets ExceptionView.MaxInner: How many inner errors are shown (default 4).

Parameters

exceptionView ConsoleMonster.Widgets.ExceptionView required
The instance.
value int required
The value.

Returns

ExceptionView The same instance.

Examples

// C# initializer or property      // C# fluent
exceptionView.MaxInner = value;    exceptionView.MaxInner(value);
public static ExceptionView ShowFrameworkFrames(ExceptionView exceptionView, bool value = true) #

Sets ExceptionView.ShowFrameworkFrames: Shows framework frames instead of collapsing them.

Parameters

exceptionView ConsoleMonster.Widgets.ExceptionView required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ExceptionView The same instance.

Examples

// C# initializer or property                 // C# fluent
exceptionView.ShowFrameworkFrames = value;    exceptionView.ShowFrameworkFrames(value);
public static ExceptionView ShowSource(ExceptionView exceptionView, bool value = true) #

Sets ExceptionView.ShowSource: Shows the source lines around the first app frame whose file can be read (default true), highlighted.

Parameters

exceptionView ConsoleMonster.Widgets.ExceptionView required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ExceptionView The same instance.

Examples

// C# initializer or property        // C# fluent
exceptionView.ShowSource = value;    exceptionView.ShowSource(value);
public static ExceptionView ShowStack(ExceptionView exceptionView, bool value = true) #

Sets ExceptionView.ShowStack: Shows the stack frames (default true); off shows the type, message and position only.

Parameters

exceptionView ConsoleMonster.Widgets.ExceptionView required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ExceptionView The same instance.

Examples

// C# initializer or property       // C# fluent
exceptionView.ShowStack = value;    exceptionView.ShowStack(value);