Tmx.CommonCmdletBase.WriteErrorMethod060OutputError C# (CSharp) Method

WriteErrorMethod060OutputError() protected method

protected WriteErrorMethod060OutputError ( PSCmdletBase cmdlet, ErrorRecord errorRecord, bool terminating ) : void
cmdlet PSTestLib.PSCmdletBase
errorRecord System.Management.Automation.ErrorRecord
terminating bool
return void
        protected override void WriteErrorMethod060OutputError(PSCmdletBase cmdlet, ErrorRecord errorRecord, bool terminating)
        {
            if (terminating) {
                //this.WriteVerbose(this, "terminating error !!!");
                try {
                    // 20130430
                    // 20140317
                    // turning off the logger
                    // WriteLog(LogLevels.Fatal, errorRecord);
                    
                    ThrowTerminatingError(errorRecord);
                }
                catch {}
            } else {
                //this.WriteVerbose(this, "regular error !!!");
                try {
                    // 20130430
                    WriteLog(LogLevels.Error, errorRecord);
                    
                    WriteError(errorRecord);
                }
                catch {}
            }
        }