Class Error
Internal DataSource to generate an error on purpose. This is to test / verify error handling in VisualQuery. See also VisualQuery 3: Debugging
Implements
Inherited Members
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, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, 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 SourceError(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 |
---|---|---|
DataSourceBase.MyServices | services |
Properties
| Improve this Doc View SourceMessage
The error message. Defaults to "Demo message of the Error DataSource"
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
string |
Title
The error title. Defaults to "Demo Error"
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
string |