Table of Contents

Class ErrorRecordHelper

Namespace
SunamoPS
Assembly
SunamoPS.dll

Helper for formatting PowerShell ErrorRecord objects into readable text.

public class ErrorRecordHelper
Inheritance
ErrorRecordHelper
Inherited Members
Extension Methods

Methods

Text(StringBuilder, ErrorRecord)

Appends the error details and exception messages from an ErrorRecord to the StringBuilder.

public static void Text(StringBuilder stringBuilder, ErrorRecord errorRecord)

Parameters

stringBuilder StringBuilder

StringBuilder to append error text to.

errorRecord ErrorRecord

ErrorRecord to extract messages from.