BatchFlow.Flow.OnError C# (CSharp) Method

OnError() private method

private OnError ( TaskNode node, Exception exc, object item, bool &stopProcessing ) : void
node TaskNode
exc System.Exception
item object
stopProcessing bool
return void
        internal void OnError(TaskNode node, Exception exc, object item, ref bool stopProcessing)
        {
            if (Error != null)
            {
                ErrorEventArgs args = new ErrorEventArgs() { Error = exc, ProcessedItem=item, StopProcessing = stopProcessing, Node = node };
                Error(this, args);
                stopProcessing = args.StopProcessing;
            }
            else
            {
                stopProcessing = true;
            }
            if (stopProcessing) _stoppingException = exc;
        }