Table of Contents

Class DataSourceErrorHelper

Namespace
ToSic.Eav.DataSource
Assembly
ToSic.Eav.DataSources.dll

An Errors-helper which is automatically available on all DataSourceBase objects.

It helps create a stream of standardized error entities.

[PublicApi]
public class DataSourceErrorHelper
Inheritance
DataSourceErrorHelper

Remarks

Constructor - to find out if it's used anywhere

Constructors

DataSourceErrorHelper(DataBuilder)

An Errors-helper which is automatically available on all DataSourceBase objects.

It helps create a stream of standardized error entities.

public DataSourceErrorHelper(DataBuilder builder)

Parameters

builder DataBuilder

Remarks

Constructor - to find out if it's used anywhere

Methods

Create(NoParamOrder, string, string, Exception, IDataSource, string)

Create a stream containing an error entity.

public IImmutableList<IEntity> Create(NoParamOrder noParamOrder = default, string title = null, string message = null, Exception exception = null, IDataSource source = null, string streamName = "Default")

Parameters

noParamOrder NoParamOrder

see Convention: Named Parameters

title string

Error title

message string

Error message

exception Exception

Exception (if there was an exception)

source IDataSource

The DataSource which created this error. If provided, will allow the message to contain more details.

streamName string

The stream name. If provided, will allow the message to contain more details.

Returns

IImmutableList<IEntity>

TryGetInFailed(NoParamOrder, IDataSource, string)

Create a stream of items showing a detailed error why an In stream was not found.

public IImmutableList<IEntity> TryGetInFailed(NoParamOrder noParamOrder = default, IDataSource source = null, string name = "Default")

Parameters

noParamOrder NoParamOrder

see Convention: Named Parameters

source IDataSource
name string

Name of the stream.

Returns

IImmutableList<IEntity>

Remarks

Added v16.00

TryGetOutFailed(NoParamOrder, IDataSource, string)

Create a stream of items showing a detailed error why an Out stream was not found.

public IImmutableList<IEntity> TryGetOutFailed(NoParamOrder noParamOrder = default, IDataSource source = null, string name = "Default")

Parameters

noParamOrder NoParamOrder

see Convention: Named Parameters

source IDataSource
name string

Name of the stream.

Returns

IImmutableList<IEntity>

Remarks

Added v16.01