src/System.Management.Automation/help/HelpNotFoundException.cs
/// <summary>
/// Creates an internal error record based on helpTopic.
/// The ErrorRecord created will be stored in the _errorRecord member.
/// </summary>
Creates an internal error record based on helpTopic.
The ErrorRecord created will be stored in the _errorRecord member.
Creates an internal error record based on helpTopic . The ErrorRecord created will be stored in the _errorRecord member .
private void CreateErrorRecord()
        {
            string errMessage = string.Format(HelpErrors.HelpNotFound, _helpTopic);
            _errorRecord = new ErrorRecord(new ParentContainsErrorRecordException(errMessage), "HelpNotFound", ErrorCategory.ResourceUnavailable, null);
            _errorRecord.ErrorDetails = new ErrorDetails(typeof(HelpNotFoundException).GetTypeInfo().Assembly, "HelpErrors", "HelpNotFound", _helpTopic);
        }
private void CreateErrorRecord ( ) { string errMessage = string . Format ( HelpErrors . HelpNotFound , _helpTopic ) ; _errorRecord = new ErrorRecord ( new ParentContainsErrorRecordException ( errMessage ) , " " , ErrorCategory . ResourceUnavailable , null ) ; _errorRecord . ErrorDetails = new ErrorDetails ( typeof ( HelpNotFoundException ) . GetTypeInfo ( ) . Assembly , " " , " " , _helpTopic ) ; }
Creates an internal error record based on helpTopic.
Creates an internal error record based on helpTopic .
// Don't do ParentContainsErrorRecordException(this), as this causes recursion, and creates a  // segmentation fault on Linux