Table of Contents

Method GetExceptionText

Namespace
Ploch.CommandLine.Spectre.Output
Assembly
Ploch.CommandLine.Spectre.dll

GetExceptionText(Win32Exception?)

Builds the marked-up console text for the exception, including its native error code.

protected override string GetExceptionText(Win32Exception? exception)

Parameters

exception Win32Exception

The exception to describe.

Returns

string

The Spectre.Console markup describing the exception.