C# Class Ascend2018.Business.Rendering.ErrorHandlingContentRenderer

Wraps an MvcContentRenderer and adds error handling to ensure that blocks and other content rendered as parts of pages won't crash the entire page if a non-critical exception occurs while rendering it.
Prints an error message for editors so that they can easily report errors to developers.
Inheritance: IContentRenderer
Afficher le fichier Open project: episerver/ascend2018-lab-extend-ui

Méthodes publiques

Méthode Description
ErrorHandlingContentRenderer ( MvcContentRenderer mvcRenderer ) : System
Render ( HtmlHelper helper, PartialRequest partialRequestHandler, IContentData contentData, TemplateModel templateModel ) : void

Renders the contentData using the wrapped renderer and catches common, non-critical exceptions.

Private Methods

Méthode Description
HandlerError ( HtmlHelper helper, IContentData contentData, Exception renderingException ) : void

Method Details

ErrorHandlingContentRenderer() public méthode

public ErrorHandlingContentRenderer ( MvcContentRenderer mvcRenderer ) : System
mvcRenderer MvcContentRenderer
Résultat System

Render() public méthode

Renders the contentData using the wrapped renderer and catches common, non-critical exceptions.
public Render ( HtmlHelper helper, PartialRequest partialRequestHandler, IContentData contentData, TemplateModel templateModel ) : void
helper HtmlHelper
partialRequestHandler PartialRequest
contentData IContentData
templateModel TemplateModel
Résultat void