using System; using Umbraco.Core.Macros; namespace Umbraco.Core.Events { // Provides information on the macro that caused an error public class MacroErrorEventArgs : EventArgs { /// /// Name of the faulting macro. /// public string Name { get; set; } /// /// Alias of the faulting macro. /// public string Alias { get; set; } /// /// Filename, file path, fully qualified class name, or other key used by the macro engine to do it's processing of the faulting macro. /// public string MacroSource { get; set; } /// /// Exception raised. /// public Exception Exception { get; set; } /// /// Gets or sets the desired behaviour when a matching macro causes an error. See /// for definitions. By setting this in your event /// you can override the default behaviour defined in UmbracoSettings.config. /// /// Macro error behaviour enum. public MacroErrorBehaviour Behaviour { get; set; } /// /// The HTML code to display when Behavior is Content. /// public string Html { get; set; } } }