• Basics
  • Abyss
  • Web APIs
  • C# & Razor
  • .net API
  • JS & TS API

    Show / Hide Table of Contents

    Class Error

    Internal DataSource to generate an error on purpose. This is to test / verify error handling in VisualQuery. See also VisualQuery 3: Debugging

    Inheritance
    System.Object
    ToSic.Lib.Services.ServiceBase
    ToSic.Lib.Services.ServiceBase<ToSic.Eav.DataSource.DataSourceBase.MyServices>
    DataSourceBase
    Error
    Implements
    IDataSource
    IAppIdentity
    IZoneIdentity
    IAppIdentityLight
    ICacheKey
    ICacheExpiring
    ITimestamped
    IHasLog
    IDataSourceLinkable
    Inherited Members
    DataSourceBase.AppId
    DataSourceBase.ZoneId
    DataSourceBase.Guid
    DataSourceBase.Error
    DataSourceBase.CacheTimestamp
    DataSourceBase.CacheChanged(Int64)
    DataSourceBase.Configuration
    DataSourceBase.Link
    DataSourceBase.In
    DataSourceBase.TryGetIn(String)
    DataSourceBase.TryGetOut(String)
    DataSourceBase.Out
    DataSourceBase.Item[String]
    DataSourceBase.GetStream(String, String, Boolean, Boolean)
    DataSourceBase.List
    DataSourceBase.Attach(IDataSource)
    DataSourceBase.Attach(String, IDataSource, String)
    DataSourceBase.Attach(String, IDataStream)
    DataSourceBase.ProvideOut(Func<IEnumerable<IEntity>>, String)
    DataSourceBase.ProvideOut(Func<IImmutableList<IEntity>>, String)
    Namespace: ToSic.Eav.DataSources
    Assembly: ToSic.Eav.DataSources.dll
    Syntax
    [VisualQuery(NiceName = "Error DataSource", UiHint = "Generate an error - primarily for debugging", Icon = "warning", Type = DataSourceType.Debug, Audience = Audience.Advanced, NameId = "e19ee6c4-5209-4c3d-8ae1-f4cbcf875c0a")]
    [PublicApi]
    public class Error : DataSourceBase, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheInfo, ICacheKey, ICacheExpiring, ITimestamped, ICanPurgeListCache, IHasLog, IDataTarget, IAppIdentitySync, IDataSourceLinkable
    Remarks

    In advanced programming scenarios you can also use this DataSource instead of another one to provide a stream of errors.

    Constructors

    | Improve this Doc View Source

    Error(DataSourceBase.MyServices)

    Constructor to tell the system what out-streams we have. In this case it's just the "Default" containing a fake exception.

    Declaration
    public Error(DataSourceBase.MyServices services)
    Parameters
    Type Name Description
    ToSic.Eav.DataSource.DataSourceBase.MyServices services

    Properties

    | Improve this Doc View Source

    Message

    The error message. Defaults to "Demo message of the Error DataSource"

    Declaration
    public string Message { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Title

    The error title. Defaults to "Demo Error"

    Declaration
    public string Title { get; set; }
    Property Value
    Type Description
    System.String

    Implements

    IDataSource
    IAppIdentity
    IZoneIdentity
    IAppIdentityLight
    ICacheKey
    ICacheExpiring
    ITimestamped
    IHasLog
    IDataSourceLinkable
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX