Table of Contents

Method CreateLogItemForException

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

CreateLogItemForException(Exception, LogItemKind, bool)

Creates a TreeControlItem for logging an exception.

public static TreeControlItem CreateLogItemForException(Exception e, LogItemKind kind = LogItemKind.Error, bool allowReplace = false)

Parameters

e Exception

The exception to log.

kind LogItemKind

The kind of log item. Default is Error.

allowReplace bool

Indicates whether replacing the last log item with the same text is allowed. Currently not implemented.

Returns

TreeControlItem

A TreeControlItem representing the logged exception.