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
public class ErrorHandlingMiddleware;
ErrorHandlingMiddleware | Constructor. |
Equals | Determines whether the specified object is equal to the current object. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. | |
GetHashCode | Serves as the default hash function. | |
GetType | Gets the Type of the current instance. | |
Invoke | Request handling method. | |
MemberwiseClone | Creates a shallow copy of the current Object. | |
ReferenceEquals | Determines whether the specified Object instances are the same instance. | |
ToString | Returns a string that represents the current object. |
See Also YetaWF.Core Overview
Documentation Feedback
© 2024 - Softel vdm, Inc. - YetaWF.com