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
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public sealed class ErrorSource : DataFlowExecutableSource<ETLBoxError>, IDataFlowLogging, IDataFlowExecutableSource<ETLBoxError>, IDataFlowSource<ETLBoxError>, IDataFlowExecutableSource, IDataFlowSource, IDataFlowComponent, ILoggableTask

Constructors

ErrorSource()

Declaration
    public ErrorSource()

Properties

CompleteManually

Declaration
    protected override bool CompleteManually { get; set; }
Property Value
TypeDescription
bool
Overrides

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

OnExecutionDoAsyncWork()

Declaration
    protected override void OnExecutionDoAsyncWork()
Overrides

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
Exceptione

The exception message

stringjsonRow

The serialized erroneous row

stringerrorContext

Additional error information

stringsourceInfo

Additional source information

Implements