Some terminating errors implement
IContainsErrorRecord
which gives them an ErrorRecord property containing this additional
information. In this case, ErrorRecord.Exception will be an instance of
ParentContainsErrorRecordException.
rather than the actual exception, to avoid the mutual references.