Table of Contents

Method GetExceptionLogText

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetExceptionLogText(Exception)

Formats the specified exception and its additional information for logging purposes.

public static string GetExceptionLogText(Exception e)

Parameters

e Exception

The exception to format. If the exception is a BaseException and contains additional information, that information is included in the output.

Returns

string

A string containing the formatted exception details, including any additional information, separated by section markers.

Remarks

The returned string includes section separators before and after the exception details. If the exception is not a BaseException or does not contain additional information, only the standard exception details are included.