Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Pages.ErrorHandlingMiddleware Class

Error handling middleware is added during startup in the request pipeline.

The error hander logs any errors that occur. Errors are usually immediately saved to the log file in use, by flushing the log file. To avoid log spamming, the log is flushed at most every 10 seconds.

Errors during (non-POST) requests are only handled if the error doesn't occur while processing a module. Modules handle errors themselves to display the errors in place of the module content. Otherwise, the request is redirected to an error page displaying a suitable error message.

Errors during POST requests are returned as a JSON object with the YetaWF.Core.Addons.Basics.AjaxJavascriptErrorReturn prefix. This is unique to the YetaWF framework and its client side JavaScript handling which expects certain prefixes identifying the response.

Namespace: YetaWF.Core.Pages
Assembly: YetaWF.Core

Inheritance

Syntax

public class ErrorHandlingMiddleware;

Constructors

PublicErrorHandlingMiddlewareConstructor.

Methods

PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
PublicInvokeRequest handling method.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

See Also YetaWF.Core Overview