Class ErrorSource
Works as a source component for any errors. Another component can use this source to redirect errors into the error data flow.
Inheritance
ErrorSource
Implements
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
Type | Description |
---|---|
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
Type | Description |
---|---|
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
Type | Name | Description |
---|---|---|
T | row | The errorneous row |
Returns
Type | Description |
---|---|
string | The faulty row serialized as json or "null" if input is null |
Type Parameters
Name | Description |
---|---|
T | Type of the row |
InitComponent()
Declaration
protected override void InitComponent()
Overrides
OnExecutionDoAsyncWork()
Declaration
protected override void OnExecutionDoAsyncWork()
Overrides
OnExecutionDoSynchronousWork()
Declaration
protected override void OnExecutionDoSynchronousWork()
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
Type | Name | Description |
---|---|---|
Exception | e | The exception message |
string | jsonRow | The serialized erroneous row |
string | errorContext | Additional error information |
string | sourceInfo | Additional source information |