ErrorDetails.Message Property


Message which replaces Message in Exception

public string Message { get; }
Property Value


When an instance of ErrorRecord contains a non-null ErrorDetails and Message is non-empty, the default host will display it instead of the Message in Exception.

        This should be a grammatically correct localized text string, as with
        <xref href="System.Exception.Message"></xref>