Skip to content
ConsoleMonster

API Reference

Class

ExceptionViewFluent

Namespace ConsoleMonster.Widgets
Assembly ConsoleMonster
Modifiers static
Attributes
GeneratedCode("ConsoleMonster.Generators", "1.0.0")

The fluent methods of ExceptionView, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • Object
  • ExceptionViewFluent

Methods

public static ExceptionView WithBasePath(ExceptionView exceptionView, String? value) #
Returns: ExceptionView

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

Parameters

exceptionView ConsoleMonster.Widgets.ExceptionView requiredposition: 0
The instance.
value System.String? requiredposition: 1
The value.

Returns

The same instance.

public static ExceptionView WithMaxFrames(ExceptionView exceptionView, Int32 value) #
Returns: ExceptionView

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

Parameters

exceptionView ConsoleMonster.Widgets.ExceptionView requiredposition: 0
The instance.
value System.Int32 requiredposition: 1
The value.

Returns

The same instance.

public static ExceptionView WithMaxInner(ExceptionView exceptionView, Int32 value) #
Returns: ExceptionView

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

Parameters

exceptionView ConsoleMonster.Widgets.ExceptionView requiredposition: 0
The instance.
value System.Int32 requiredposition: 1
The value.

Returns

The same instance.

public static ExceptionView WithShowFrameworkFrames(ExceptionView exceptionView, Boolean value = true) #
Returns: ExceptionView

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

Parameters

exceptionView ConsoleMonster.Widgets.ExceptionView requiredposition: 0
The instance.
value System.Boolean = true optionalposition: 1
The value (default true).

Returns

The same instance.

public static ExceptionView WithShowSource(ExceptionView exceptionView, Boolean value = true) #
Returns: ExceptionView

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 requiredposition: 0
The instance.
value System.Boolean = true optionalposition: 1
The value (default true).

Returns

The same instance.

public static ExceptionView WithShowStack(ExceptionView exceptionView, Boolean value = true) #
Returns: ExceptionView

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

Parameters

exceptionView ConsoleMonster.Widgets.ExceptionView requiredposition: 0
The instance.
value System.Boolean = true optionalposition: 1
The value (default true).

Returns

The same instance.