Class MacroErrorEventArgs
Inheritance
System.Object
System.EventArgs
Namespace: Umbraco.Core.Events
Assembly: Umbraco.Core.dll
Syntax
public class MacroErrorEventArgs : EventArgs
Properties
View SourceAlias
Alias of the faulting macro.
Declaration
public string Alias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Behaviour
Gets or sets the desired behaviour when a matching macro causes an error. See MacroErrorBehaviour for definitions. By setting this in your event you can override the default behaviour defined in UmbracoSettings.config.
Declaration
public MacroErrorBehaviour Behaviour { get; set; }
Property Value
Type | Description |
---|---|
MacroErrorBehaviour | Macro error behaviour enum. |
Exception
Exception raised.
Declaration
public Exception Exception { get; set; }
Property Value
Type | Description |
---|---|
System.Exception |
Html
The HTML code to display when Behavior is Content.
Declaration
public string Html { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MacroSource
Filename, file path, fully qualified class name, or other key used by the macro engine to do it's processing of the faulting macro.
Declaration
public string MacroSource { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Name of the faulting macro.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |