Class ErrorSource

Works as a source component for any errors. Another component can use this source to redirect errors into the error data flow.

Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public sealed class ErrorSource : DataFlowExecutableSource<ETLBoxError>, ILoggableTask, IDataFlowLogging, IDataFlowExecutableSource<ETLBoxError>, IDataFlowSource<ETLBoxError>, IDataFlowSource, IDataFlowComponent, IDataFlowExecutableSource

Constructors

ErrorSource()

Declaration
    public ErrorSource()

Properties

CompleteManually

Declaration
    protected override bool CompleteManually { get; set; }
Property Value
TypeDescription
bool
Overrides
ETLBox.DataFlow.DataFlowExecutableSource<ETLBox.DataFlow.ETLBoxError>.CompleteManually

Redirection

If set to another error source, all message send to this source will redirected.

Declaration
    public ErrorSource Redirection { get; set; }
Property Value
TypeDescription
ErrorSource

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides

ConvertErrorData<T>(T)

Serialized a row using the default json serialization

Declaration
    public static string ConvertErrorData<T>(T row)
Parameters
TypeNameDescription
Trow

The errorneous row

Returns
TypeDescription
string

The faulty row serialized as json or "null" if input is null

Type Parameters
NameDescription
T

Type of the row

InitComponent()

Declaration
    protected override void InitComponent()
Overrides
ETLBox.DataFlow.DataFlowExecutableSource<ETLBox.DataFlow.ETLBoxError>.InitComponent()

OnExecutionDoAsyncWork()

Declaration
    protected override void OnExecutionDoAsyncWork()
Overrides
ETLBox.DataFlow.DataFlowExecutableSource<ETLBox.DataFlow.ETLBoxError>.OnExecutionDoAsyncWork()

OnExecutionDoSynchronousWork()

Declaration
    protected override void OnExecutionDoSynchronousWork()
Overrides
ETLBox.DataFlow.DataFlowExecutableSource<ETLBox.DataFlow.ETLBoxError>.OnExecutionDoSynchronousWork()

Send(Exception, string, string, string)

Sends the error message into the error data flow

Declaration
    public void Send(Exception e, string jsonRow, string errorContext = null, string sourceInfo = null)
Parameters
TypeNameDescription
System.Exceptione

The exception message

stringjsonRow

The serialized erroneous row

stringerrorContext

Additional error information

stringsourceInfo

Additional source information

Implements