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
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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
System.Boolean
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
System.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)

Sends the error message into the error data flow

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

The exception message

System.StringjsonRow

The serialized erroneous row

Implements