C# Класс Alloy.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.
Наследование: IContentRenderer
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
HandlerError ( HtmlHelper helper, IContentData contentData, Exception renderingException ) : void

Описание методов

ErrorHandlingContentRenderer() публичный Метод

public ErrorHandlingContentRenderer ( MvcContentRenderer mvcRenderer ) : System
mvcRenderer MvcContentRenderer
Результат System

Render() публичный Метод

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
Результат void