Class ErrorFilter
Intercepts error that arise during processing and displays an error page for exceptions and error codes
Inheritance
System.Object
ErrorFilter
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.Wave.dll
Syntax
public sealed class ErrorFilter : WorkFilter, IDisposable, IApplicationComponent, INamed, IOrdered
Constructors
ErrorFilter(WorkDispatcher, IConfigSectionNode)
Declaration
public ErrorFilter(WorkDispatcher dispatcher, IConfigSectionNode confNode)
Parameters
ErrorFilter(WorkDispatcher, String, Int32)
Declaration
public ErrorFilter(WorkDispatcher dispatcher, string name, int order)
Parameters
Type |
Name |
Description |
WorkDispatcher |
dispatcher |
|
System.String |
name |
|
System.Int32 |
order |
|
ErrorFilter(WorkHandler, IConfigSectionNode)
Declaration
public ErrorFilter(WorkHandler handler, IConfigSectionNode confNode)
Parameters
ErrorFilter(WorkHandler, String, Int32)
Declaration
public ErrorFilter(WorkHandler handler, string name, int order)
Parameters
Type |
Name |
Description |
WorkHandler |
handler |
|
System.String |
name |
|
System.Int32 |
order |
|
Fields
CONFIG_LOG_SECTION
Declaration
public const string CONFIG_LOG_SECTION = "log"
Field Value
Type |
Description |
System.String |
|
CONFIG_SECURITY_REDIRECT_SECTION
Declaration
public const string CONFIG_SECURITY_REDIRECT_SECTION = "security-redirect"
Field Value
Type |
Description |
System.String |
|
CONFIG_SHOW_DUMP_SECTION
Declaration
public const string CONFIG_SHOW_DUMP_SECTION = "show-dump"
Field Value
Type |
Description |
System.String |
|
VAR_SECURITY_REDIRECT_TARGET
Declaration
public const string VAR_SECURITY_REDIRECT_TARGET = "security-redirect-target"
Field Value
Type |
Description |
System.String |
|
VAR_SECURITY_REDIRECT_URL
Declaration
public const string VAR_SECURITY_REDIRECT_URL = "security-redirect-url"
Field Value
Type |
Description |
System.String |
|
Properties
CustomErrorPageType
Specifies a type for custom error page. Must be WebTemplate-derived type
Declaration
[Config]
public string CustomErrorPageType { get; set; }
Property Value
Type |
Description |
System.String |
|
LogMatches
Returns matches used by the filter to determine whether exception details should be logged
Declaration
public OrderedRegistry<WorkMatch> LogMatches { get; }
Property Value
SecurityRedirectMatches
Returns matches used by the filter to supply custom redirect urls via redirect-url and redirect-target variables
Declaration
public OrderedRegistry<WorkMatch> SecurityRedirectMatches { get; }
Property Value
SecurityRedirectTarget
When set redirects response to the specified URL if security exceptions are thrown
Declaration
[Config]
public string SecurityRedirectTarget { get; set; }
Property Value
Type |
Description |
System.String |
|
SecurityRedirectURL
When set redirects response to the specified URL if security exceptions are thrown
Declaration
[Config]
public string SecurityRedirectURL { get; set; }
Property Value
Type |
Description |
System.String |
|
ShowDumpMatches
Returns matches used by the filter to determine whether exception details should be shown
Declaration
public OrderedRegistry<WorkMatch> ShowDumpMatches { get; }
Property Value
Methods
DoFilterWork(WorkContext, IList<WorkFilter>, Int32)
Declaration
protected override void DoFilterWork(WorkContext work, IList<WorkFilter> filters, int thisFilterIndex)
Parameters
Type |
Name |
Description |
WorkContext |
work |
|
System.Collections.Generic.IList<WorkFilter> |
filters |
|
System.Int32 |
thisFilterIndex |
|
Overrides
HandleException(WorkContext, Exception, OrderedRegistry<WorkMatch>, OrderedRegistry<WorkMatch>, String, String, OrderedRegistry<WorkMatch>, Type)
Handles the exception by responding appropriately with error page with conditional level of details and logging
Declaration
public static void HandleException(WorkContext work, Exception error, OrderedRegistry<WorkMatch> showDumpMatches, OrderedRegistry<WorkMatch> logMatches, string securityRedirectURL = null, string securityRedirectTarget = null, OrderedRegistry<WorkMatch> securityRedirectMatches = null, Type customPageType = null)
Parameters
Implements
System.IDisposable
Extension Methods