Posts

Showing posts with the label Sitecore Pipelines

Smart Error Handle Mechanism For Sitecore Rendering Components

Image
Hello Everyone, I am back with another blog. In this blog we will discuss how Sitecore handle exceptions internally while rendering the the Sitecore components on the page. What error handling strategy it use internally and which pipeline is responsible for it. How we can pass our custom handler to existing pipeline processor. We might have faced situations like, when exception occurs in any one component, it breaks the whole page and page is redirected to the custom error page defined. We know, we can handle such scenario by writing proper try catch mechanism and handle the exceptions. But sometime it happens, we don't handle all type of exceptions properly which can lead to breaking of that page.  So let's start, how we can handle it for all Sitecore component in one go if exception handling is not done properly. First we will see what is default pipeline to render the component and error strategy defined. If we see in below image, there is a processor called Sitecore.Mvc.Pi...