Пример #1
0
        private static Exception DecodeException(PSObject psObject)
        {
            ErrorRecord record = ErrorRecord.FromPSObjectForRemoting(psObject);

            if (record == null)
            {
                throw RemoteHostExceptions.NewDecodingErrorForErrorRecordException();
            }
            return(record.Exception);
        }