Class MacroErrorEventArgs
Inheritance
System.Object
System.EventArgs
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public class MacroErrorEventArgs : EventArgs
Properties
Alias
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 |
ItemKey
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 ItemKey { 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 |