Title here
Summary here
Works as a source component for any errors. Another component can use this source to redirect errors into the error data flow.
public sealed class ErrorSource : DataFlowExecutableSource<ETLBoxError>, IDataFlowExecutableSource<ETLBoxError>, IDataFlowSource<ETLBoxError>, IDataFlowExecutableSource, IDataFlowSource, IDataFlowComponent, ILoggableTask
public ErrorSource()
protected override bool CompleteManually { get; set; }
Type | Description |
---|---|
bool |
If set to another error source, all message send to this source will redirected.
public ErrorSource Redirection { get; set; }
Type | Description |
---|---|
ErrorSource |
protected override void CheckParameter()
Serialized a row using the default json serialization
public static string ConvertErrorData<T>(T row)
Type | Name | Description |
---|---|---|
T | row | The errorneous row |
Type | Description |
---|---|
string | The faulty row serialized as json or "null" if input is null |
Name | Description |
---|---|
T | Type of the row |
protected override void InitComponent()
protected override void OnExecutionDoAsyncWork()
Sends the error message into the error data flow
public void Send(Exception e, string jsonRow, string errorContext = null, string sourceInfo = null)
Type | Name | Description |
---|---|---|
Exception | e | The exception message |
string | jsonRow | The serialized erroneous row |
string | errorContext | Additional error information |
string | sourceInfo | Additional source information |