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
stringBuilderStringBuilderStringBuilder to append error text to.
errorRecordErrorRecordErrorRecord to extract messages from.